Code Duplication    Length = 10-10 lines in 3 locations

modules/clock.php 1 location

@@ 77-86 (lines=10) @@
74
	/**
75
	* {@inheritdoc}
76
	*/
77
	public function get_template_acp($module_id)
78
	{
79
		return array(
80
			'title'	=> 'ACP_PORTAL_CLOCK_SETTINGS',
81
			'vars'	=> array(
82
				'legend1'	=> 'ACP_PORTAL_CLOCK_SETTINGS',
83
				'board3_clock_src_' . $module_id	=> array('lang' => 'ACP_PORTAL_CLOCK_SRC', 'validate' => 'string', 'type' => 'text:50:200', 'explain' => true, 'submit_type' => 'custom', 'submit' => 'check_file_src'),
84
			),
85
		);
86
	}
87
88
	/**
89
	 * {@inheritdoc}

modules/custom.php 1 location

@@ 120-129 (lines=10) @@
117
	/**
118
	* {@inheritdoc}
119
	*/
120
	public function get_template_acp($module_id)
121
	{
122
		return array(
123
			'title'	=> 'PORTAL_CUSTOM',
124
			'vars'	=> array(
125
				'legend1'								=> 'PORTAL_CUSTOM',
126
				'board3_custom_' . $module_id . '_code'	=> array('lang' => 'PORTAL_CUSTOM',		'validate' => 'string',	'type' => 'custom', 'method' => 'manage_custom', 'submit' => 'update_custom', 'explain' => true),
127
			),
128
		);
129
	}
130
131
	/**
132
	* {@inheritdoc}

modules/welcome.php 1 location

@@ 111-120 (lines=10) @@
108
	/**
109
	* {@inheritdoc}
110
	*/
111
	public function get_template_acp($module_id)
112
	{
113
		return array(
114
			'title'	=> 'ACP_PORTAL_WELCOME_SETTINGS',
115
			'vars'	=> array(
116
				'legend1'								=> 'ACP_PORTAL_WELCOME_SETTINGS',
117
				'board3_welcome_message_' . $module_id	=> array('lang' => 'PORTAL_WELCOME_INTRO',	'validate' => 'string',	'type' => 'custom', 'method' => 'manage_welcome', 'submit' => 'update_welcome', 'explain' => true),
118
			),
119
		);
120
	}
121
122
	/**
123
	* {@inheritdoc}