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.
In Drupal 5, it was possible to theme specific menus differently by looking at the $pid variable passed to theme_menu_tree(). In Drupal 6, it is no longer possible to determine which menu is being themed.
Comments
Comment #1
Darren OhDuplicate of issue 397550.
Comment #2
Darren OhActually, theme_menu_tree() was mentioned there, but it's not related.
Comment #3
JohnAlbinugh. yeah, no context makes theme_menu_tree() mostly useless.
However, theme_menu_item and theme_menu_item_link cover a lot of cases. But not all, so some context to theme_menu_tree would still be nice.
Comment #4
JohnAlbinToo late for d7, I think. Adding it to my list for D8.
Comment #5
JohnAlbinI just upgraded menu_block to D7 and discovered this issue has already been fixed!!!!
See #634472: Menus cannot be themed differently
Comment #7
Elijah LynnComment #8
Elijah Lynn