aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/admin.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-11 15:28:07 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-11 15:28:07 +0000
commit4f9f1db1ad4e524960a0b3544f06b94717fc3875 (patch)
treeaa213b9db76bc1f0295fffab1c6fc69ca2425431 /engine/lib/admin.php
parent33cfe143311844cbde22177e07e4f1742bb04e25 (diff)
downloadelgg-4f9f1db1ad4e524960a0b3544f06b94717fc3875.tar.gz
elgg-4f9f1db1ad4e524960a0b3544f06b94717fc3875.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Initial administration panel git-svn-id: https://code.elgg.org/elgg/trunk@867 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/admin.php')
-rw-r--r--engine/lib/admin.php26
1 files changed, 14 insertions, 12 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php
index 97b6d9eeb..7621af9e7 100644
--- a/engine/lib/admin.php
+++ b/engine/lib/admin.php
@@ -23,25 +23,21 @@
* nb. some pages already exist that you can extend), extend the main view to point to it, and add controls to your
* new view.
*
+ * At the moment this is essentially a wrapper around extend_view.
+ *
+ * @param string $new_admin_view The view associated with the control you're adding
* @param string $view The view to extend, by default this is 'admin/main'.
- * @param string $new_admin_view The view body associated with the page.
* @param int $priority Optional priority to govern the appearance in the list.
*/
- function extend_elgg_admin_page($view = 'admin/main', $new_admin_view, $priority = 500)
+ function extend_elgg_admin_page( $new_admin_view, $view = 'admin/main', $priority = 500)
{
-
+ return extend_view($view, $new_admin_view, $priority);
}
- /**
- * Return an array of registered elgg admin pages.
- *
- * @return array
- */
- function get_elgg_admin_pages()
- {
-
- }
+
+
+ // register admin action
function admin_init()
@@ -49,6 +45,12 @@
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');
}