From c607a2424cec501051b27ce5c1606df5b602231f Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Fri, 22 May 2009 01:26:47 +0000 Subject: Began coding admin settings page --- start.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'start.php') diff --git a/start.php b/start.php index 1881b1d31..ea5c67e2d 100644 --- a/start.php +++ b/start.php @@ -161,6 +161,17 @@ } + /** + * Sets up tidypics admin menu. Triggered on pagesetup. + */ + function tidypics_adminmenu() + { + global $CONFIG; + if (get_context() == 'admin' && isadminloggedin()) { + add_submenu_item(elgg_echo('tidypics:adminsettings'), $CONFIG->url . "mod/tidypics/admin.php"); + } + } + /** * tidypics page handler * @@ -338,6 +349,7 @@ // Make sure tidypics_init is called on initialisation register_elgg_event_handler('init','system','tidypics_init'); register_elgg_event_handler('pagesetup','system','tidypics_submenus'); + register_elgg_event_handler('pagesetup','system','tidypics_adminmenu'); // Register actions register_action("tidypics/upload", false, $CONFIG->pluginspath . "tidypics/actions/upload.php"); -- cgit v1.2.3