Related to #633804: Improve menu support

After IRC with yhahn, this seems strange, so adding an issue to help track it down.

I added a custom menu 'user-links' to match UI improvements in D7. Then moved 2 existing menu items from Navigation to that menu: user/logout & user/%. I then created 2 new menu items: user/login & user/register in that menu.

When recreating a feature to add that menu & it's items, i only saw the option to add the existing logout and my account items, not the custom ones i had made.

Adding the lines to my feature's info file, then doing a drush fu did the trick:

features[menu_links][] = "menu-user-links:logout"
features[menu_links][] = "menu-user-links:user/%"
features[menu_links][] = "menu-user-links:user/login"
features[menu_links][] = "menu-user-links:user/register"

I'm mentioning that because this seemed unexpected to yhahn, so maybe this is helpful.

Further complicating the issue is the fact that on a clean install (enabling the feature through an install profile), the existing menu items were not moved - this only happened after a feature revert. Maybe this is a separate issue though?

Comments

ezra-g’s picture

Status: Active » Closed (duplicate)
hefox’s picture

See #935152: Menu Items missing from Menu Links due to access callback user_is_anonymous for why user/login, user/register do not appear as choices