Commit d07d55c1 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 581ea2c4
......@@ -678,7 +678,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'),
'access' => TRUE,
'callback' => 'user_logout',
......
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