aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-11 15:34:22 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-11 15:34:22 +0000
commit2bbaf0ef4d9d50c47f89648e5c71303fc301b621 (patch)
treec6f54f282fc26d710e6db99c3b259b1c196ddf0e /engine
parent4f9f1db1ad4e524960a0b3544f06b94717fc3875 (diff)
downloadelgg-2bbaf0ef4d9d50c47f89648e5c71303fc301b621.tar.gz
elgg-2bbaf0ef4d9d50c47f89648e5c71303fc301b621.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Documentation git-svn-id: https://code.elgg.org/elgg/trunk@868 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-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