29 $return = $hook->getValue();
32 'name' =>
'dashboard',
36 'section' =>
'administer',
42 'href' =>
'admin/plugins',
44 'section' =>
'administer',
50 'href' =>
'admin/users',
52 'section' =>
'administer',
58 'href' =>
'admin/upgrades',
60 'section' =>
'administer',
64 'name' =>
'administer_utilities',
65 'text' =>
elgg_echo(
'admin:administer_utilities'),
68 'section' =>
'administer',
69 'show_with_empty_children' =>
false,
90 $administer =
$result->getSection(
'administer');
92 $users = $administer->get(
'users');
101 'name' =>
'users:all',
103 'href' =>
'admin/users',
110 $users->addItemClass(
'elgg-has-selected-child');
111 $users->addItemClass(
'elgg-state-selected');
132 $return = $hook->getValue();
135 'name' =>
'settings:basic',
136 'text' =>
elgg_echo(
'admin:site_settings'),
137 'href' =>
'admin/site_settings',
139 'section' =>
'configure',
143 'name' =>
'settings:icons',
145 'href' =>
'admin/site_icons',
147 'section' =>
'configure',
151 'name' =>
'security',
153 'href' =>
'admin/security',
155 'section' =>
'configure',
160 'name' =>
'configure_utilities',
161 'text' =>
elgg_echo(
'admin:configure_utilities'),
164 'section' =>
'configure',
167 'name' =>
'configure_utilities:maintenance',
168 'text' =>
elgg_echo(
'admin:configure_utilities:maintenance'),
169 'href' =>
'admin/configure_utilities/maintenance',
170 'section' =>
'configure',
171 'parent_name' =>
'configure_utilities',
174 'name' =>
'configure_utilities:menu_items',
175 'text' =>
elgg_echo(
'admin:configure_utilities:menu_items'),
176 'href' =>
'admin/configure_utilities/menu_items',
177 'section' =>
'configure',
178 'parent_name' =>
'configure_utilities',
181 'name' =>
'configure_utilities:robots',
182 'text' =>
elgg_echo(
'admin:configure_utilities:robots'),
183 'href' =>
'admin/configure_utilities/robots',
184 'section' =>
'configure',
185 'parent_name' =>
'configure_utilities',
208 $return = $hook->getValue();
211 'name' =>
'default_widgets',
212 'text' =>
elgg_echo(
'admin:configure_utilities:default_widgets'),
213 'href' =>
'admin/configure_utilities/default_widgets',
214 'section' =>
'configure',
215 'parent_name' =>
'configure_utilities',
234 $return = $hook->getValue();
239 'href' =>
'admin/server',
240 'section' =>
'information',
245 'name' =>
'information:security',
247 'href' =>
'admin/security/information',
248 'section' =>
'information',
253 'name' =>
'information:performance',
254 'text' =>
elgg_echo(
'admin:performance'),
255 'href' =>
'admin/performance',
256 'section' =>
'information',
261 'name' =>
'statistics',
263 'href' =>
'admin/statistics',
264 'section' =>
'information',
271 'href' =>
'admin/cron',
272 'section' =>
'information',
295 if (empty($active_plugins)) {
300 $plugins_with_settings = [];
302 foreach ($active_plugins as
$plugin) {
310 'name' =>
"plugin:settings:{$plugin_id}",
315 'parent_name' =>
'plugin_settings',
316 'section' =>
'configure',
320 if (empty($plugins_with_settings)) {
325 $return = $hook->getValue();
328 'name' =>
'plugin_settings',
329 'text' =>
elgg_echo(
'admin:plugin_settings'),
331 'section' =>
'configure',
334 ksort($plugins_with_settings);
336 foreach ($plugins_with_settings as $plugin_item) {
359 $return = $hook->getValue();
362 'name' =>
'1_account',
363 'text' =>
elgg_echo(
'usersettings:user:opt:linktext'),
365 'username' =>
$user->username,
367 'section' =>
'configure',
371 'name' =>
'1_notifications',
372 'text' =>
elgg_echo(
'usersettings:notifications:menu:page'),
374 'username' =>
$user->username,
376 'section' =>
'configure',
380 'name' =>
'1_statistics',
381 'text' =>
elgg_echo(
'usersettings:statistics:opt:linktext'),
383 'username' =>
$user->username,
385 'section' =>
'configure',
405 $return = $hook->getValue();
408 'name' =>
'1_plugins',
409 'text' =>
elgg_echo(
'usersettings:plugins:opt:linktext'),
411 'section' =>
'configure',
412 'show_with_empty_children' =>
false,
416 foreach ($active_plugins as
$plugin) {
422 $title = $plugin->getDisplayName();
431 'username' =>
$user->username,
434 'parent_name' =>
'1_plugins',
435 'section' =>
'configure',
456 $return = $hook->getValue();
459 'name' =>
'edit_avatar',
462 'section' =>
'1_profile',
elgg_language_key_exists($key, $language= 'en')
Check if a given language key exists.
elgg_view_exists($view, $viewtype= '', $recurse=true)
Returns whether the specified view exists.
elgg_get_plugins(string $status= 'active')
Returns an ordered list of plugins.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
if(empty($user_guids)) $users
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
$plugin_id
Remove all user and plugin settings from the give plugin ID.
Models an event passed to hook handlers.
elgg_in_context($context)
Check if this context exists anywhere in the stack.
elgg_generate_url($name, array $parameters=[])
Generate a URL for named route.
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
$selected
Admin helper view for tabs on the different security pages.
if(!$plugin) $plugin_name
elgg_generate_entity_url(ElggEntity $entity, $resource= 'view', $subresource=null, array $parameters=[])
Generate entity URL from a named route.