Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
As introduced in #634472: Menus cannot be themed differently, a user can use THEMENAME_menu_link__MENU_NAME() and THEMENAME_menu_tree__MENU_NAME() to override theme_menu_link() and theme_menu_tree() for specific menus. This isn't really documented anywhere on the API site but is in the handbook here https://www.drupal.org/node/254940#theme-suggestions-for-menus.
Proposed resolution
Document these abilities. I am not sure if it should be in menu_tree_output() or theme_menu_link() and theme_menu_tree() etc.
Remaining tasks
Document.
User interface changes
None.
API changes
None.
Comments
Comment #1
Elijah LynnComment #2
jhodgdonThese are just standard theme suggestions. We don't need to document them outside of the Handbook page you cited, and we are not doing that for other theme suggestions as far as I know... I guess we could add a line to the docs for theme_menu_link() to mention the suggestions, but probably this is not necessary and I am not aware of other theme hooks that do that.