aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/start.php
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 21:44:07 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 21:44:07 +0000
commit6b5a3b2dfd0a20da1dfb46f42a7bc79dfe9377fc (patch)
treee2f5b3cf9c799790fcc57b9e2c31c03cc70cb270 /mod/profile/start.php
parent07727717f2341edc80ba9dc47e78649d1133b29b (diff)
downloadelgg-6b5a3b2dfd0a20da1dfb46f42a7bc79dfe9377fc.tar.gz
elgg-6b5a3b2dfd0a20da1dfb46f42a7bc79dfe9377fc.tar.bz2
Updating multiple plugins to no longer register admin menus with an event hook.
git-svn-id: http://code.elgg.org/elgg/trunk@6191 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/start.php')
-rw-r--r--mod/profile/start.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/mod/profile/start.php b/mod/profile/start.php
index f83f10869..6263f4a54 100644
--- a/mod/profile/start.php
+++ b/mod/profile/start.php
@@ -51,7 +51,12 @@ 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');
}
/**
@@ -189,9 +194,6 @@ function profileedit_page_handler($page) {
function profile_pagesetup()
{
global $CONFIG;
- if (get_context() == 'admin' && isadminloggedin()) {
- add_submenu_item(elgg_echo('profile:edit:default'), $CONFIG->wwwroot . 'pg/defaultprofile/edit/');
- }
//add submenu options
if (get_context() == "profile") {