Unlock the My Account Menu Item?
mpaler - December 27, 2007 - 22:27
| Project: | Drupal |
| Version: | 6.x-dev |
| Component: | user.module |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
My apologies if this has already been requested. It seems like it would make life SO much easier to create/manipulate custom menus if the My Account Link were not locked to the Navigation menu. I know there's a number of work arounds, however, it seems to me like one should be able to put the My Account Menu item where ever one wants.
Thanks for the consideration.

#1
A) you should be using Drupal 5.5 Drupal 5.4 had problems that were fixed with the release of Drupal 5.5
B) a request should be made against the next version of Drupal that is accepting feature requests which would be Drupal 7
I also don't see the need for this to happen, one can create a new menu item called "my account" and then the link can be moved around as desired.
#2
That would be great, if it worked. :-(
You can't create a dynamic menu item with the GUI. So you create it in your module instead, something like this in hook_menu(), right?
<?php$items[] = array(
'path' => 'user/'.$user->uid,
'title' => t('My account'),
'type' => MENU_CUSTOM_ITEM,
);
?>
And yes, now the 'My account' item is not locked and has an edit button. However, the edit button links to menu/item/edit/-212 and gives a 404!
So, are the steps described above actually going to work in Drupal 7? If so, I agree they're fine. But the above does not work in Drupal 5.5, so far as I can tell - I've been banging my head against this for over a week and asked dozens of folk who all shrug their shoulders!
#3
The 'My account' item is editable in Drupal 6.
#4
Hallelujah! I'm going to run outside and dance in the garden, even though it's raining. ;-)
#5
Automatically closed -- issue fixed for two weeks with no activity.