aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/admin.php')
-rw-r--r--engine/lib/admin.php19
1 files changed, 6 insertions, 13 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php
index 7621af9e7..2434ab62c 100644
--- a/engine/lib/admin.php
+++ b/engine/lib/admin.php
@@ -34,26 +34,19 @@
return extend_view($view, $new_admin_view, $priority);
}
-
-
-
- // register admin action
-
-
+ /**
+ * Initialise the admin page.
+ */
function admin_init()
{
global $CONFIG;
- // TODO: Register default pages
-
-
// Add plugin main menu option (last)
- extend_elgg_admin_page('admin/main_opt/plugins', 'admin/main', 999);
- extend_elgg_admin_page('admin/main_opt/site', 'admin/main');
- extend_elgg_admin_page('admin/main_opt/user', 'admin/main');
+ extend_elgg_admin_page('admin/main_opt/site', 'admin/main');
+ extend_elgg_admin_page('admin/main_opt/user', 'admin/main');
+ extend_elgg_admin_page('admin/main_opt/plugins', 'admin/main', 999); // Always last
}
-
/// Register init function
register_elgg_event_handler('init','system','admin_init');
?> \ No newline at end of file