From 76d3b27335145459e1b9da4e07cf37ad8bd050c1 Mon Sep 17 00:00:00 2001 From: nickw Date: Tue, 25 May 2010 22:18:22 +0000 Subject: Updating administration plugins with admin submenu views. git-svn-id: http://code.elgg.org/elgg/trunk@6220 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/start.php | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'mod/profile/start.php') diff --git a/mod/profile/start.php b/mod/profile/start.php index 6263f4a54..90caa8f64 100644 --- a/mod/profile/start.php +++ b/mod/profile/start.php @@ -40,7 +40,6 @@ function profile_init() { // Register a page handler, so we can have nice URLs register_page_handler('profile', 'profile_page_handler'); - register_page_handler('defaultprofile', 'profileedit_page_handler'); register_page_handler('icon', 'profile_icon_handler'); register_page_handler('iconjs', 'profile_iconjs_handler'); @@ -52,11 +51,7 @@ function profile_init() { // Now override icons register_plugin_hook('entity:icon:url', 'user', 'profile_usericon_hook'); - elgg_add_submenu_item(array( - 'text' => elgg_echo('profile:edit:default'), - 'href' => "{$CONFIG->wwwroot}pg/defaultprofile/edit", - 'parent_id' => 'appearance', - ), 'admin', 'default'); + elgg_add_admin_submenu_item('defaultprofile', elgg_echo('profile:edit:default'), 'appearance'); } /** @@ -169,24 +164,6 @@ function profile_page_handler($page) { return; } -/** - * Profile edit page handler - * - * @param array $page Array of page elements, forwarded by the page handling mechanism - */ -function profileedit_page_handler($page) { - global $CONFIG; - - // The username should be the file we're getting - if (isset($page[0])) { - switch ($page[0]) { - default: - include($CONFIG->pluginspath . "profile/defaultprofile.php"); - break; - } - } -} - /** * Pagesetup function * -- cgit v1.2.3