Completed
Push — master ( 919157...f13f78 )
by Ismayil
15:41 queued 02:57
created
mod/developers/start.php 1 patch
Indentation   +202 added lines, -202 removed lines patch added patch discarded remove patch
@@ -12,75 +12,75 @@  discard block
 block discarded – undo
12 12
 
13 13
 function developers_init() {
14 14
 
15
-	elgg_register_plugin_hook_handler('register', 'menu:page', '_developers_page_menu');
15
+    elgg_register_plugin_hook_handler('register', 'menu:page', '_developers_page_menu');
16 16
 		
17
-	elgg_extend_view('admin.css', 'developers/css');
18
-	elgg_extend_view('elgg.css', 'developers/css');
17
+    elgg_extend_view('admin.css', 'developers/css');
18
+    elgg_extend_view('elgg.css', 'developers/css');
19 19
 
20
-	elgg_register_page_handler('theme_sandbox', 'developers_theme_sandbox_controller');
21
-	elgg_register_page_handler('developers_ajax_demo', 'developers_ajax_demo_controller');
20
+    elgg_register_page_handler('theme_sandbox', 'developers_theme_sandbox_controller');
21
+    elgg_register_page_handler('developers_ajax_demo', 'developers_ajax_demo_controller');
22 22
 
23
-	elgg_register_external_view('developers/ajax'); // for lightbox in sandbox
24
-	elgg_register_ajax_view('developers/ajax_demo.html');
25
-	$sandbox_css = elgg_get_simplecache_url('theme_sandbox.css');
26
-	elgg_register_css('dev.theme_sandbox', $sandbox_css);
23
+    elgg_register_external_view('developers/ajax'); // for lightbox in sandbox
24
+    elgg_register_ajax_view('developers/ajax_demo.html');
25
+    $sandbox_css = elgg_get_simplecache_url('theme_sandbox.css');
26
+    elgg_register_css('dev.theme_sandbox', $sandbox_css);
27 27
 
28
-	elgg_register_ajax_view('forms/developers/ajax_demo');
29
-	elgg_register_ajax_view('theme_sandbox/components/tabs/ajax');
28
+    elgg_register_ajax_view('forms/developers/ajax_demo');
29
+    elgg_register_ajax_view('theme_sandbox/components/tabs/ajax');
30 30
 }
31 31
 
32 32
 function developers_process_settings() {
33
-	$settings = elgg_get_plugin_from_id('developers')->getAllSettings();
34
-
35
-	ini_set('display_errors', (int) !empty($settings['display_errors']));
36
-
37
-	if (!empty($settings['screen_log'])) {
38
-		// don't show in action/simplecache
39
-		$path = substr(current_page_url(), strlen(elgg_get_site_url()));
40
-		if (!preg_match('~^(cache|action)/~', $path)) {
41
-			$cache = new ElggLogCache();
42
-			elgg_set_config('log_cache', $cache);
43
-			elgg_register_plugin_hook_handler('debug', 'log', [$cache, 'insertDump']);
44
-			elgg_register_plugin_hook_handler('view_vars', 'page/elements/html', function($hook, $type, $vars, $params) {
45
-				$vars['body'] .= elgg_view('developers/log');
46
-				return $vars;
47
-			});
48
-		}
49
-	}
50
-
51
-	if (!empty($settings['show_strings'])) {
52
-		// Beginning and end to make sure both early-rendered and late-loaded translations get included
53
-		elgg_register_event_handler('init', 'system', 'developers_decorate_all_translations', 1);
54
-		elgg_register_event_handler('init', 'system', 'developers_decorate_all_translations', 1000);
55
-	}
56
-
57
-	if (!empty($settings['show_modules'])) {
58
-		elgg_require_js('elgg/dev/amd_monitor');
59
-	}
60
-
61
-	if (!empty($settings['wrap_views'])) {
62
-		elgg_register_plugin_hook_handler('view', 'all', 'developers_wrap_views', 600);
63
-	}
64
-
65
-	if (!empty($settings['log_events'])) {
66
-		elgg_register_event_handler('all', 'all', 'developers_log_events', 1);
67
-		elgg_register_plugin_hook_handler('all', 'all', 'developers_log_events', 1);
68
-	}
69
-
70
-	if (!empty($settings['show_gear']) && elgg_is_admin_logged_in() && !elgg_in_context('admin')) {
71
-		elgg_require_js('elgg/dev/gear');
72
-		elgg_register_ajax_view('developers/gear_popup');
73
-		elgg_register_simplecache_view('elgg/dev/gear.html');
74
-
75
-		$handler = [Hooks::class, 'alterMenuSectionVars'];
76
-		elgg_register_plugin_hook_handler('view_vars', 'navigation/menu/elements/section', $handler);
77
-
78
-		$handler = [Hooks::class, 'alterMenuSections'];
79
-		elgg_register_plugin_hook_handler('view', 'navigation/menu/elements/section', $handler);
80
-
81
-		$handler = [Hooks::class, 'alterMenu'];
82
-		elgg_register_plugin_hook_handler('view', 'navigation/menu/default', $handler);
83
-	}
33
+    $settings = elgg_get_plugin_from_id('developers')->getAllSettings();
34
+
35
+    ini_set('display_errors', (int) !empty($settings['display_errors']));
36
+
37
+    if (!empty($settings['screen_log'])) {
38
+        // don't show in action/simplecache
39
+        $path = substr(current_page_url(), strlen(elgg_get_site_url()));
40
+        if (!preg_match('~^(cache|action)/~', $path)) {
41
+            $cache = new ElggLogCache();
42
+            elgg_set_config('log_cache', $cache);
43
+            elgg_register_plugin_hook_handler('debug', 'log', [$cache, 'insertDump']);
44
+            elgg_register_plugin_hook_handler('view_vars', 'page/elements/html', function($hook, $type, $vars, $params) {
45
+                $vars['body'] .= elgg_view('developers/log');
46
+                return $vars;
47
+            });
48
+        }
49
+    }
50
+
51
+    if (!empty($settings['show_strings'])) {
52
+        // Beginning and end to make sure both early-rendered and late-loaded translations get included
53
+        elgg_register_event_handler('init', 'system', 'developers_decorate_all_translations', 1);
54
+        elgg_register_event_handler('init', 'system', 'developers_decorate_all_translations', 1000);
55
+    }
56
+
57
+    if (!empty($settings['show_modules'])) {
58
+        elgg_require_js('elgg/dev/amd_monitor');
59
+    }
60
+
61
+    if (!empty($settings['wrap_views'])) {
62
+        elgg_register_plugin_hook_handler('view', 'all', 'developers_wrap_views', 600);
63
+    }
64
+
65
+    if (!empty($settings['log_events'])) {
66
+        elgg_register_event_handler('all', 'all', 'developers_log_events', 1);
67
+        elgg_register_plugin_hook_handler('all', 'all', 'developers_log_events', 1);
68
+    }
69
+
70
+    if (!empty($settings['show_gear']) && elgg_is_admin_logged_in() && !elgg_in_context('admin')) {
71
+        elgg_require_js('elgg/dev/gear');
72
+        elgg_register_ajax_view('developers/gear_popup');
73
+        elgg_register_simplecache_view('elgg/dev/gear.html');
74
+
75
+        $handler = [Hooks::class, 'alterMenuSectionVars'];
76
+        elgg_register_plugin_hook_handler('view_vars', 'navigation/menu/elements/section', $handler);
77
+
78
+        $handler = [Hooks::class, 'alterMenuSections'];
79
+        elgg_register_plugin_hook_handler('view', 'navigation/menu/elements/section', $handler);
80
+
81
+        $handler = [Hooks::class, 'alterMenu'];
82
+        elgg_register_plugin_hook_handler('view', 'navigation/menu/default', $handler);
83
+    }
84 84
 }
85 85
 
86 86
 /**
@@ -97,61 +97,61 @@  discard block
 block discarded – undo
97 97
  * @since 3.0
98 98
  */
99 99
 function _developers_page_menu($hook, $type, $return, $params) {
100
-	if (!elgg_in_context('admin') || !elgg_is_admin_logged_in()) {
101
-		return;
102
-	}
100
+    if (!elgg_in_context('admin') || !elgg_is_admin_logged_in()) {
101
+        return;
102
+    }
103 103
 	
104
-	$return[] = \ElggMenuItem::factory([
105
-		'name' => 'dev_settings',
106
-		'href' => 'admin/developers/settings',
107
-		'text' => elgg_echo('settings'),
108
-		'priority' => 10,
109
-		'section' => 'develop',
110
-	]);
104
+    $return[] = \ElggMenuItem::factory([
105
+        'name' => 'dev_settings',
106
+        'href' => 'admin/developers/settings',
107
+        'text' => elgg_echo('settings'),
108
+        'priority' => 10,
109
+        'section' => 'develop',
110
+    ]);
111 111
 	
112
-	$return[] = \ElggMenuItem::factory([
113
-		'name' => 'inspect',
114
-		'text' => elgg_echo('admin:inspect'),
115
-		'section' => 'develop',
116
-	]);
112
+    $return[] = \ElggMenuItem::factory([
113
+        'name' => 'inspect',
114
+        'text' => elgg_echo('admin:inspect'),
115
+        'section' => 'develop',
116
+    ]);
117 117
 	
118
-	$inspect_options = developers_get_inspect_options();
119
-	foreach ($inspect_options as $key => $value) {
120
-		$return[] = \ElggMenuItem::factory([
121
-			'name' => 'dev_inspect_' . elgg_get_friendly_title($key),
122
-			'href' => "admin/develop_tools/inspect?" . http_build_query([
123
-				'inspect_type' => $key,
124
-			]),
125
-			'text' => $value,
126
-			'section' => 'develop',
127
-			'parent_name' => 'inspect',
128
-		]);
129
-	}
118
+    $inspect_options = developers_get_inspect_options();
119
+    foreach ($inspect_options as $key => $value) {
120
+        $return[] = \ElggMenuItem::factory([
121
+            'name' => 'dev_inspect_' . elgg_get_friendly_title($key),
122
+            'href' => "admin/develop_tools/inspect?" . http_build_query([
123
+                'inspect_type' => $key,
124
+            ]),
125
+            'text' => $value,
126
+            'section' => 'develop',
127
+            'parent_name' => 'inspect',
128
+        ]);
129
+    }
130 130
 	
131
-	$return[] = \ElggMenuItem::factory([
132
-		'name' => 'develop_tools',
133
-		'text' => elgg_echo('admin:develop_tools'),
134
-		'section' => 'develop',
135
-	]);
131
+    $return[] = \ElggMenuItem::factory([
132
+        'name' => 'develop_tools',
133
+        'text' => elgg_echo('admin:develop_tools'),
134
+        'section' => 'develop',
135
+    ]);
136 136
 	
137
-	$return[] = \ElggMenuItem::factory([
138
-		'name' => 'develop_tools:sandbox',
139
-		'href' => 'admin/develop_tools/sandbox',
140
-		'text' => elgg_echo('admin:develop_tools:sandbox'),
141
-		'parent_name' => 'develop_tools',
142
-		'section' => 'develop',
143
-	]);
137
+    $return[] = \ElggMenuItem::factory([
138
+        'name' => 'develop_tools:sandbox',
139
+        'href' => 'admin/develop_tools/sandbox',
140
+        'text' => elgg_echo('admin:develop_tools:sandbox'),
141
+        'parent_name' => 'develop_tools',
142
+        'section' => 'develop',
143
+    ]);
144 144
 	
145
-	return $return;
145
+    return $return;
146 146
 }
147 147
 
148 148
 /**
149 149
  * Adds debug info to all translatable strings.
150 150
  */
151 151
 function developers_decorate_all_translations() {
152
-	$language = get_current_language();
153
-	_developers_decorate_translations($language);
154
-	_developers_decorate_translations('en');
152
+    $language = get_current_language();
153
+    _developers_decorate_translations($language);
154
+    _developers_decorate_translations('en');
155 155
 }
156 156
 
157 157
 /**
@@ -162,16 +162,16 @@  discard block
 block discarded – undo
162 162
  * @param string $language Language code like "en"
163 163
  */
164 164
 function _developers_decorate_translations($language) {
165
-	$translations = _elgg_services()->translator->getLoadedTranslations();
165
+    $translations = _elgg_services()->translator->getLoadedTranslations();
166 166
 
167
-	foreach ($translations[$language] as $key => &$value) {
168
-		$needle = " ($key)";
167
+    foreach ($translations[$language] as $key => &$value) {
168
+        $needle = " ($key)";
169 169
 		
170
-		// if $value doesn't already end with " ($key)", append it
171
-		if (substr($value, -strlen($needle)) !== $needle) {
172
-			$value .= $needle;
173
-		}
174
-	}
170
+        // if $value doesn't already end with " ($key)", append it
171
+        if (substr($value, -strlen($needle)) !== $needle) {
172
+            $value .= $needle;
173
+        }
174
+    }
175 175
 }
176 176
 
177 177
 /**
@@ -186,38 +186,38 @@  discard block
 block discarded – undo
186 186
  * that do not match the above restrictions.
187 187
  */
188 188
 function developers_wrap_views($hook, $type, $result, $params) {
189
-	if (elgg_get_viewtype() != "default") {
190
-		return;
191
-	}
189
+    if (elgg_get_viewtype() != "default") {
190
+        return;
191
+    }
192 192
 
193
-	$excluded_bases = ['resources', 'input', 'output', 'embed', 'icon', 'json', 'xml'];
193
+    $excluded_bases = ['resources', 'input', 'output', 'embed', 'icon', 'json', 'xml'];
194 194
 
195
-	$excluded_views = [
196
-		'page/default',
197
-		'page/admin',
198
-		'page/elements/head',
199
-	];
195
+    $excluded_views = [
196
+        'page/default',
197
+        'page/admin',
198
+        'page/elements/head',
199
+    ];
200 200
 
201
-	$view = $params['view'];
201
+    $view = $params['view'];
202 202
 
203
-	$view_hierarchy = explode('/', $view);
204
-	if (in_array($view_hierarchy[0], $excluded_bases)) {
205
-		return;
206
-	}
203
+    $view_hierarchy = explode('/', $view);
204
+    if (in_array($view_hierarchy[0], $excluded_bases)) {
205
+        return;
206
+    }
207 207
 
208
-	if (in_array($view, $excluded_views)) {
209
-		return;
210
-	}
208
+    if (in_array($view, $excluded_views)) {
209
+        return;
210
+    }
211 211
 	
212
-	if ((new \SplFileInfo($view))->getExtension()) {
213
-		return;
214
-	}
212
+    if ((new \SplFileInfo($view))->getExtension()) {
213
+        return;
214
+    }
215 215
 
216
-	if ($result) {
217
-		$result = "<!-- developers:begin $view -->$result<!-- developers:end $view -->";
218
-	}
216
+    if ($result) {
217
+        $result = "<!-- developers:begin $view -->$result<!-- developers:end $view -->";
218
+    }
219 219
 
220
-	return $result;
220
+    return $result;
221 221
 }
222 222
 
223 223
 /**
@@ -225,47 +225,47 @@  discard block
 block discarded – undo
225 225
  */
226 226
 function developers_log_events($name, $type) {
227 227
 
228
-	// filter out some very common events
229
-	if ($name == 'view' || $name == 'display' || $name == 'log' || $name == 'debug') {
230
-		return;
231
-	}
232
-	if ($name == 'session:get' || $name == 'validate') {
233
-		return;
234
-	}
235
-
236
-	// 0 => this function
237
-	// 1 => call_user_func_array
238
-	// 2 => hook class trigger
239
-	$stack = debug_backtrace();
240
-	if (isset($stack[2]['class']) && $stack[2]['class'] == 'Elgg\EventsService') {
241
-		$event_type = 'Event';
242
-	} else {
243
-		$event_type = 'Plugin hook';
244
-	}
245
-
246
-	if ($stack[3]['function'] == 'elgg_trigger_event' || $stack[3]['function'] == 'elgg_trigger_plugin_hook') {
247
-		$index = 4;
248
-	} else {
249
-		$index = 3;
250
-	}
251
-	if (isset($stack[$index]['class'])) {
252
-		$function = $stack[$index]['class'] . '::' . $stack[$index]['function'] . '()';
253
-	} else {
254
-		$function = $stack[$index]['function'] . '()';
255
-	}
256
-	if ($function == 'require_once()' || $function == 'include_once()') {
257
-		$function = $stack[$index]['file'];
258
-	}
259
-
260
-	$msg = elgg_echo('developers:event_log_msg', [
261
-		$event_type,
262
-		$name,
263
-		$type,
264
-		$function,
265
-	]);
266
-	elgg_dump($msg, false);
267
-
268
-	unset($stack);
228
+    // filter out some very common events
229
+    if ($name == 'view' || $name == 'display' || $name == 'log' || $name == 'debug') {
230
+        return;
231
+    }
232
+    if ($name == 'session:get' || $name == 'validate') {
233
+        return;
234
+    }
235
+
236
+    // 0 => this function
237
+    // 1 => call_user_func_array
238
+    // 2 => hook class trigger
239
+    $stack = debug_backtrace();
240
+    if (isset($stack[2]['class']) && $stack[2]['class'] == 'Elgg\EventsService') {
241
+        $event_type = 'Event';
242
+    } else {
243
+        $event_type = 'Plugin hook';
244
+    }
245
+
246
+    if ($stack[3]['function'] == 'elgg_trigger_event' || $stack[3]['function'] == 'elgg_trigger_plugin_hook') {
247
+        $index = 4;
248
+    } else {
249
+        $index = 3;
250
+    }
251
+    if (isset($stack[$index]['class'])) {
252
+        $function = $stack[$index]['class'] . '::' . $stack[$index]['function'] . '()';
253
+    } else {
254
+        $function = $stack[$index]['function'] . '()';
255
+    }
256
+    if ($function == 'require_once()' || $function == 'include_once()') {
257
+        $function = $stack[$index]['file'];
258
+    }
259
+
260
+    $msg = elgg_echo('developers:event_log_msg', [
261
+        $event_type,
262
+        $name,
263
+        $type,
264
+        $function,
265
+    ]);
266
+    elgg_dump($msg, false);
267
+
268
+    unset($stack);
269 269
 }
270 270
 
271 271
 /**
@@ -275,19 +275,19 @@  discard block
 block discarded – undo
275 275
  * @return bool
276 276
  */
277 277
 function developers_theme_sandbox_controller($page) {
278
-	if (!isset($page[0])) {
279
-		forward('theme_sandbox/intro');
280
-	}
281
-
282
-	echo elgg_view_resource('theme_sandbox', [
283
-		'page' => $page[0],
284
-	]);
285
-	return true;
278
+    if (!isset($page[0])) {
279
+        forward('theme_sandbox/intro');
280
+    }
281
+
282
+    echo elgg_view_resource('theme_sandbox', [
283
+        'page' => $page[0],
284
+    ]);
285
+    return true;
286 286
 }
287 287
 
288 288
 function developers_ajax_demo_controller() {
289
-	echo elgg_view_resource('developers/ajax_demo');
290
-	return true;
289
+    echo elgg_view_resource('developers/ajax_demo');
290
+    return true;
291 291
 }
292 292
 
293 293
 /**
@@ -296,21 +296,21 @@  discard block
 block discarded – undo
296 296
  * @return array
297 297
  */
298 298
 function developers_get_inspect_options() {
299
-	$options = [
300
-		'Actions' => elgg_echo('developers:inspect:actions'),
301
-		'Events' => elgg_echo('developers:inspect:events'),
302
-		'Menus' => elgg_echo('developers:inspect:menus'),
303
-		'Plugin Hooks' => elgg_echo('developers:inspect:pluginhooks'),
304
-		'Simple Cache' => elgg_echo('developers:inspect:simplecache'),
305
-		'Views' => elgg_echo('developers:inspect:views'),
306
-		'Widgets' => elgg_echo('developers:inspect:widgets'),
307
-	];
299
+    $options = [
300
+        'Actions' => elgg_echo('developers:inspect:actions'),
301
+        'Events' => elgg_echo('developers:inspect:events'),
302
+        'Menus' => elgg_echo('developers:inspect:menus'),
303
+        'Plugin Hooks' => elgg_echo('developers:inspect:pluginhooks'),
304
+        'Simple Cache' => elgg_echo('developers:inspect:simplecache'),
305
+        'Views' => elgg_echo('developers:inspect:views'),
306
+        'Widgets' => elgg_echo('developers:inspect:widgets'),
307
+    ];
308 308
 	
309
-	if (elgg_is_active_plugin('web_services')) {
310
-		$options['Web Services'] = elgg_echo('developers:inspect:webservices');
311
-	}
309
+    if (elgg_is_active_plugin('web_services')) {
310
+        $options['Web Services'] = elgg_echo('developers:inspect:webservices');
311
+    }
312 312
 	
313
-	ksort($options);
313
+    ksort($options);
314 314
 	
315
-	return $options;
315
+    return $options;
316 316
 }
Please login to merge, or discard this patch.
mod/developers/languages/en.php 1 patch
Indentation   +86 added lines, -86 removed lines patch added patch discarded remove patch
@@ -1,99 +1,99 @@
 block discarded – undo
1 1
 <?php
2 2
 return [
3
-	// menu
4
-	'admin:develop_tools' => 'Tools',
5
-	'admin:develop_tools:sandbox' => 'Theme Sandbox',
6
-	'admin:develop_tools:inspect' => 'Inspect',
7
-	'admin:inspect' => 'Inspect',
8
-	'admin:develop_tools:unit_tests' => 'Unit Tests',
9
-	'admin:develop_tools:entity_explorer' => 'Entity Explorer',
10
-	'admin:developers' => 'Developers',
11
-	'admin:developers:settings' => 'Settings',
3
+    // menu
4
+    'admin:develop_tools' => 'Tools',
5
+    'admin:develop_tools:sandbox' => 'Theme Sandbox',
6
+    'admin:develop_tools:inspect' => 'Inspect',
7
+    'admin:inspect' => 'Inspect',
8
+    'admin:develop_tools:unit_tests' => 'Unit Tests',
9
+    'admin:develop_tools:entity_explorer' => 'Entity Explorer',
10
+    'admin:developers' => 'Developers',
11
+    'admin:developers:settings' => 'Settings',
12 12
 
13
-	// settings
14
-	'elgg_dev_tools:settings:explanation' => 'Control your development and debugging settings below. Some of these settings are also available on other admin pages.',
15
-	'developers:label:simple_cache' => 'Use simple cache',
16
-	'developers:help:simple_cache' => 'Turn off this cache when developing. Otherwise, changes to your CSS and JavaScript will be ignored.',
17
-	'developers:label:system_cache' => 'Use system cache',
18
-	'developers:help:system_cache' => 'Turn this off when developing. Otherwise, changes in your plugins will not be registered.',
19
-	'developers:label:debug_level' => "Trace level",
20
-	'developers:help:debug_level' => "This controls the amount of information logged. See elgg_log() for more information.",
21
-	'developers:label:display_errors' => 'Display fatal PHP errors',
22
-	'developers:help:display_errors' => "By default, Elgg's .htaccess file supresses the display of fatal errors.",
23
-	'developers:label:screen_log' => "Log to the screen",
24
-	'developers:help:screen_log' => "This displays elgg_log() and elgg_dump() output and a DB query count.",
25
-	'developers:label:show_strings' => "Show raw translation strings",
26
-	'developers:help:show_strings' => "This displays the translation strings used by elgg_echo().",
27
-	'developers:label:show_modules' => "Show AMD modules loaded in console",
28
-	'developers:help:show_modules' => "Streams loaded modules and values to your JavaScript console.",
29
-	'developers:label:wrap_views' => "Wrap views",
30
-	'developers:help:wrap_views' => "This wraps almost every view with HTML comments. Useful for finding the view creating particular HTML.
13
+    // settings
14
+    'elgg_dev_tools:settings:explanation' => 'Control your development and debugging settings below. Some of these settings are also available on other admin pages.',
15
+    'developers:label:simple_cache' => 'Use simple cache',
16
+    'developers:help:simple_cache' => 'Turn off this cache when developing. Otherwise, changes to your CSS and JavaScript will be ignored.',
17
+    'developers:label:system_cache' => 'Use system cache',
18
+    'developers:help:system_cache' => 'Turn this off when developing. Otherwise, changes in your plugins will not be registered.',
19
+    'developers:label:debug_level' => "Trace level",
20
+    'developers:help:debug_level' => "This controls the amount of information logged. See elgg_log() for more information.",
21
+    'developers:label:display_errors' => 'Display fatal PHP errors',
22
+    'developers:help:display_errors' => "By default, Elgg's .htaccess file supresses the display of fatal errors.",
23
+    'developers:label:screen_log' => "Log to the screen",
24
+    'developers:help:screen_log' => "This displays elgg_log() and elgg_dump() output and a DB query count.",
25
+    'developers:label:show_strings' => "Show raw translation strings",
26
+    'developers:help:show_strings' => "This displays the translation strings used by elgg_echo().",
27
+    'developers:label:show_modules' => "Show AMD modules loaded in console",
28
+    'developers:help:show_modules' => "Streams loaded modules and values to your JavaScript console.",
29
+    'developers:label:wrap_views' => "Wrap views",
30
+    'developers:help:wrap_views' => "This wraps almost every view with HTML comments. Useful for finding the view creating particular HTML.
31 31
 									This can break non-HTML views in the default viewtype. See developers_wrap_views() for details.",
32
-	'developers:label:log_events' => "Log events and plugin hooks",
33
-	'developers:help:log_events' => "Write events and plugin hooks to the log. Warning: there are many of these per page.",
34
-	'developers:label:show_gear' => "Use %s outside admin area",
35
-	'developers:help:show_gear' => "An icon on the bottom right of the viewport that gives admins access to developer settings and links.",
36
-	'developers:label:submit' => "Save and flush caches",
32
+    'developers:label:log_events' => "Log events and plugin hooks",
33
+    'developers:help:log_events' => "Write events and plugin hooks to the log. Warning: there are many of these per page.",
34
+    'developers:label:show_gear' => "Use %s outside admin area",
35
+    'developers:help:show_gear' => "An icon on the bottom right of the viewport that gives admins access to developer settings and links.",
36
+    'developers:label:submit' => "Save and flush caches",
37 37
 
38
-	'developers:debug:off' => 'Off',
39
-	'developers:debug:error' => 'Error',
40
-	'developers:debug:warning' => 'Warning',
41
-	'developers:debug:notice' => 'Notice',
42
-	'developers:debug:info' => 'Info',
38
+    'developers:debug:off' => 'Off',
39
+    'developers:debug:error' => 'Error',
40
+    'developers:debug:warning' => 'Warning',
41
+    'developers:debug:notice' => 'Notice',
42
+    'developers:debug:info' => 'Info',
43 43
 	
44
-	// entity explorer
45
-	'developers:entity_explorer:help' => 'View information about entities and perform some basic actions on them.',
46
-	'developers:entity_explorer:guid:label' => 'Enter the guid of the entity to inspect',
47
-	'developers:entity_explorer:info' => 'Entity Information',
48
-	'developers:entity_explorer:info:attributes' => 'Attributes',
49
-	'developers:entity_explorer:info:metadata' => 'Metadata',
50
-	'developers:entity_explorer:info:relationships' => 'Relationships',
51
-	'developers:entity_explorer:info:private_settings' => 'Private Settings',
52
-	'developers:entity_explorer:delete_entity' => 'Remove this entity',
44
+    // entity explorer
45
+    'developers:entity_explorer:help' => 'View information about entities and perform some basic actions on them.',
46
+    'developers:entity_explorer:guid:label' => 'Enter the guid of the entity to inspect',
47
+    'developers:entity_explorer:info' => 'Entity Information',
48
+    'developers:entity_explorer:info:attributes' => 'Attributes',
49
+    'developers:entity_explorer:info:metadata' => 'Metadata',
50
+    'developers:entity_explorer:info:relationships' => 'Relationships',
51
+    'developers:entity_explorer:info:private_settings' => 'Private Settings',
52
+    'developers:entity_explorer:delete_entity' => 'Remove this entity',
53 53
 	
54
-	// inspection
55
-	'developers:inspect:help' => 'Inspect configuration of the Elgg framework.',
56
-	'developers:inspect:actions' => 'Actions',
57
-	'developers:inspect:events' => 'Events',
58
-	'developers:inspect:menus' => 'Menus',
59
-	'developers:inspect:pluginhooks' => 'Plugin Hooks',
60
-	'developers:inspect:priority' => 'Priority',
61
-	'developers:inspect:simplecache' => 'Simple Cache',
62
-	'developers:inspect:views' => 'Views',
63
-	'developers:inspect:views:all_filtered' => "<b>Note!</b> All view input/output is filtered through these Plugin Hooks:",
64
-	'developers:inspect:views:input_filtered' => "(input filtered by plugin hook: %s)",
65
-	'developers:inspect:views:filtered' => "(filtered by plugin hook: %s)",
66
-	'developers:inspect:widgets' => 'Widgets',
67
-	'developers:inspect:webservices' => 'Webservices',
68
-	'developers:inspect:widgets:context' => 'Context',
69
-	'developers:inspect:functions' => 'Functions',
70
-	'developers:inspect:file_location' => 'File path from Elgg root',
54
+    // inspection
55
+    'developers:inspect:help' => 'Inspect configuration of the Elgg framework.',
56
+    'developers:inspect:actions' => 'Actions',
57
+    'developers:inspect:events' => 'Events',
58
+    'developers:inspect:menus' => 'Menus',
59
+    'developers:inspect:pluginhooks' => 'Plugin Hooks',
60
+    'developers:inspect:priority' => 'Priority',
61
+    'developers:inspect:simplecache' => 'Simple Cache',
62
+    'developers:inspect:views' => 'Views',
63
+    'developers:inspect:views:all_filtered' => "<b>Note!</b> All view input/output is filtered through these Plugin Hooks:",
64
+    'developers:inspect:views:input_filtered' => "(input filtered by plugin hook: %s)",
65
+    'developers:inspect:views:filtered' => "(filtered by plugin hook: %s)",
66
+    'developers:inspect:widgets' => 'Widgets',
67
+    'developers:inspect:webservices' => 'Webservices',
68
+    'developers:inspect:widgets:context' => 'Context',
69
+    'developers:inspect:functions' => 'Functions',
70
+    'developers:inspect:file_location' => 'File path from Elgg root',
71 71
 
72
-	// event logging
73
-	'developers:request_stats' => "Request Statistics (does not include the shutdown event)",
74
-	'developers:event_log_msg' => "%s: '%s, %s' in %s",
75
-	'developers:log_queries' => "DB queries: %s",
76
-	'developers:boot_cache_rebuilt' => "The boot cache was rebuilt for this request",
77
-	'developers:elapsed_time' => "Elapsed time (s)",
72
+    // event logging
73
+    'developers:request_stats' => "Request Statistics (does not include the shutdown event)",
74
+    'developers:event_log_msg' => "%s: '%s, %s' in %s",
75
+    'developers:log_queries' => "DB queries: %s",
76
+    'developers:boot_cache_rebuilt' => "The boot cache was rebuilt for this request",
77
+    'developers:elapsed_time' => "Elapsed time (s)",
78 78
 
79
-	// theme sandbox
80
-	'theme_sandbox:intro' => 'Introduction',
81
-	'theme_sandbox:breakout' => 'Break out of iframe',
82
-	'theme_sandbox:buttons' => 'Buttons',
83
-	'theme_sandbox:components' => 'Components',
84
-	'theme_sandbox:forms' => 'Forms',
85
-	'theme_sandbox:grid' => 'Grid',
86
-	'theme_sandbox:icons' => 'Icons',
87
-	'theme_sandbox:javascript' => 'JavaScript',
88
-	'theme_sandbox:layouts' => 'Layouts',
89
-	'theme_sandbox:modules' => 'Modules',
90
-	'theme_sandbox:navigation' => 'Navigation',
91
-	'theme_sandbox:typography' => 'Typography',
79
+    // theme sandbox
80
+    'theme_sandbox:intro' => 'Introduction',
81
+    'theme_sandbox:breakout' => 'Break out of iframe',
82
+    'theme_sandbox:buttons' => 'Buttons',
83
+    'theme_sandbox:components' => 'Components',
84
+    'theme_sandbox:forms' => 'Forms',
85
+    'theme_sandbox:grid' => 'Grid',
86
+    'theme_sandbox:icons' => 'Icons',
87
+    'theme_sandbox:javascript' => 'JavaScript',
88
+    'theme_sandbox:layouts' => 'Layouts',
89
+    'theme_sandbox:modules' => 'Modules',
90
+    'theme_sandbox:navigation' => 'Navigation',
91
+    'theme_sandbox:typography' => 'Typography',
92 92
 
93
-	'theme_sandbox:icons:blurb' => 'Use <em>elgg_view_icon($name)</em> to display icons.',
93
+    'theme_sandbox:icons:blurb' => 'Use <em>elgg_view_icon($name)</em> to display icons.',
94 94
 
95
-	// status messages
96
-	'developers:settings:success' => 'Settings saved and caches flushed',
95
+    // status messages
96
+    'developers:settings:success' => 'Settings saved and caches flushed',
97 97
 
98
-	'developers:amd' => 'AMD',
98
+    'developers:amd' => 'AMD',
99 99
 ];
Please login to merge, or discard this patch.