- Patch #13184 by JonBob: changed the 'my account' menu to a 'dynamic menu' so it can't be edited.

4.6.x
Dries Buytaert 2005-01-27 21:34:38 +00:00
parent ba27785210
commit b4d516f423
2 changed files with 4 additions and 2 deletions

View File

@ -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'),

View File

@ -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'),