diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-11 15:28:07 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-11 15:28:07 +0000 |
commit | 4f9f1db1ad4e524960a0b3544f06b94717fc3875 (patch) | |
tree | aa213b9db76bc1f0295fffab1c6fc69ca2425431 /engine | |
parent | 33cfe143311844cbde22177e07e4f1742bb04e25 (diff) | |
download | elgg-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')
-rw-r--r-- | engine/lib/admin.php | 26 | ||||
-rw-r--r-- | engine/lib/elgglib.php | 2 |
2 files changed, 15 insertions, 13 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'); } diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 092330328..e7e3abc12 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -278,7 +278,7 @@ * Extends a view by adding other views to be displayed at the same time.
*
* @param string $view The view to add to.
- * @param string $view_name The name of the view to extend with
+ * @param string $view_name The name of the view to extend
* @param int $priority The priority, from 0 to 1000, to add at (lowest numbers will be displayed first)
*/
function extend_view($view, $view_name, $priority = 501) {
|