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

Elijah Lynn’s picture

jhodgdon’s picture

Status: Active » Closed (works as designed)

These 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.