From ae6aa4e59ecd5bb6647ac9b1343d4f68d57d922b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 23 Jun 2004 05:11:35 +0000 Subject: - Patch #8758 by Morbus Iff: allow users to modify their profile under the new tabs system. --- modules/user.module | 2 +- modules/user/user.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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); -- cgit v1.2.3