From b4d516f423c59c8ee5019f33cd876231d422cacd Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 27 Jan 2005 21:34:38 +0000 Subject: - Patch #13184 by JonBob: changed the 'my account' menu to a 'dynamic menu' so it can't be edited. --- modules/user.module | 3 ++- modules/user/user.module | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/user.module b/modules/user.module index d76e9c664..cf2f07a98 100644 --- a/modules/user.module +++ b/modules/user.module @@ -684,7 +684,8 @@ function user_menu($may_cache) { if ($user->uid) { $items[] = array('path' => 'user/'. $user->uid, 'title' => t('my account'), - 'callback' => 'user_page', 'access' => TRUE); + 'callback' => 'user_page', 'access' => TRUE, + 'type' => MENU_DYNAMIC_ITEM); } $items[] = array('path' => 'logout', 'title' => t('log out'), diff --git a/modules/user/user.module b/modules/user/user.module index d76e9c664..cf2f07a98 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -684,7 +684,8 @@ function user_menu($may_cache) { if ($user->uid) { $items[] = array('path' => 'user/'. $user->uid, 'title' => t('my account'), - 'callback' => 'user_page', 'access' => TRUE); + 'callback' => 'user_page', 'access' => TRUE, + 'type' => MENU_DYNAMIC_ITEM); } $items[] = array('path' => 'logout', 'title' => t('log out'), -- cgit v1.2.3