Code Duplication    Length = 13-13 lines in 2 locations

mod/dashboard/start.php 1 location

@@ 67-79 (lines=13) @@
64
 * @param unknown_type $params
65
 * @return array
66
 */
67
function dashboard_default_widgets($hook, $type, $return, $params) {
68
	$return[] = array(
69
		'name' => elgg_echo('dashboard'),
70
		'widget_context' => 'dashboard',
71
		'widget_columns' => 3,
72
73
		'event' => 'create',
74
		'entity_type' => 'user',
75
		'entity_subtype' => ELGG_ENTITIES_ANY_VALUE,
76
	);
77
78
	return $return;
79
}

mod/profile/start.php 1 location

@@ 166-178 (lines=13) @@
163
 * @param array  $return
164
 * @return array
165
 */
166
function profile_default_widgets_hook($hook, $type, $return) {
167
	$return[] = array(
168
		'name' => elgg_echo('profile'),
169
		'widget_context' => 'profile',
170
		'widget_columns' => 3,
171
172
		'event' => 'create',
173
		'entity_type' => 'user',
174
		'entity_subtype' => ELGG_ENTITIES_ANY_VALUE,
175
	);
176
177
	return $return;
178
}
179
180
/**
181
 * Sets up user-related menu items