diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-06-23 05:11:35 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-06-23 05:11:35 +0000 |
commit | ae6aa4e59ecd5bb6647ac9b1343d4f68d57d922b (patch) | |
tree | 72680b8a3e667e82f71ef8fe9429667cae632981 /modules | |
parent | fa2be0b8f0207ea1fb4669872f412f28954b5e4e (diff) | |
download | brdo-ae6aa4e59ecd5bb6647ac9b1343d4f68d57d922b.tar.gz brdo-ae6aa4e59ecd5bb6647ac9b1343d4f68d57d922b.tar.bz2 |
- Patch #8758 by Morbus Iff: allow users to modify their profile under
the new tabs system.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user.module | 2 | ||||
-rw-r--r-- | modules/user/user.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/user.module b/modules/user.module index dad0f2018..7f93e0321 100644 --- a/modules/user.module +++ b/modules/user.module @@ -597,7 +597,7 @@ function user_menu() { 'callback' => 'user_page', 'access' => TRUE); // Add the edit menu: if ($access) $function = 'user_admin_edit'; - else $function = 'user_edit'; + else $function = 'user_page'; $items[] = array('path' => 'user/'. arg(1) .'/edit', 'title' => t('edit'), 'callback' => $function, 'access' => $access || $user->uid == arg(1), 'type' => MENU_LOCAL_TASK); diff --git a/modules/user/user.module b/modules/user/user.module index dad0f2018..7f93e0321 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -597,7 +597,7 @@ function user_menu() { 'callback' => 'user_page', 'access' => TRUE); // Add the edit menu: if ($access) $function = 'user_admin_edit'; - else $function = 'user_edit'; + else $function = 'user_page'; $items[] = array('path' => 'user/'. arg(1) .'/edit', 'title' => t('edit'), 'callback' => $function, 'access' => $access || $user->uid == arg(1), 'type' => MENU_LOCAL_TASK); |