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

Darren Oh’s picture

Status: Active » Closed (duplicate)

Duplicate of issue 397550.

Darren Oh’s picture

Actually, theme_menu_tree() was mentioned there, but it's not related.

JohnAlbin’s picture

Status: Closed (duplicate) » Active

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

JohnAlbin’s picture

Version: 6.x-dev » 8.x-dev

Too late for d7, I think. Adding it to my list for D8.

JohnAlbin’s picture

Version: 8.x-dev » 7.x-dev
Status: Active » Fixed

I just upgraded menu_block to D7 and discovered this issue has already been fixed!!!!

See #634472: Menus cannot be themed differently

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Elijah Lynn’s picture

Elijah Lynn’s picture

Status: Closed (fixed) » Closed (duplicate)