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