diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-01-27 21:34:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-01-27 21:34:38 +0000 |
commit | b4d516f423c59c8ee5019f33cd876231d422cacd (patch) | |
tree | 6af4860e23150e9e32b6e78f128c6bc724c06864 | |
parent | ba2778521005123817bd3cf5fcf053a8754b299d (diff) | |
download | brdo-b4d516f423c59c8ee5019f33cd876231d422cacd.tar.gz brdo-b4d516f423c59c8ee5019f33cd876231d422cacd.tar.bz2 |
- Patch #13184 by JonBob: changed the 'my account' menu to a 'dynamic menu' so it can't be edited.
-rw-r--r-- | modules/user.module | 3 | ||||
-rw-r--r-- | modules/user/user.module | 3 |
2 files changed, 4 insertions, 2 deletions
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'), |