Active
Project:
Features Menu UUID
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Aug 2020 at 04:30 UTC
Updated:
2 Aug 2020 at 03:35 UTC
Jump to comment: Most recent
drush features-components menu_links
should show a complete list of menu links for menus where features is enabled.
Currently, only items are shown where the user has access.
The reason is in menu_links_features_export_options().
This uses menu_parent_options() to build the list.
This function uses menu_tree_all_data() which filters out items without access.
In drush the user is like "anonymous", so only the items shown are those open to the public.
E.g. if the path is "admin" or "admin/structure", it will not show up in the list.
Other parts of menu_links integration do not have this limitation.
(the same problem occurs in features' own implementation)
Comments
Comment #2
donquixote commentedThe function contains code which is meant to reveal those hidden items.
Unfortunately this does not work in drush, where the user is anonymous.
The "correct" solution is to load everything from the database.
Comment #3
donquixote commentedChanging drush command in title.