Commit b4d516f4 authored by Dries's avatar Dries

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

parent ba277852
......@@ -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'),
......
......@@ -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'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment