I have a bunch of menus which I want to theme in a distinctive way. They will be in their own region.

Is there a theme function that can target specific menus?

I'm hoping I can assign a menu's block to a region and theme it differently. I think of it as having more than one primary menu, or as a category of menus which gets themed in a special way.

I need this to happen in a dynamic way, so that when a menu is moved to the region, it gets themed accordingly. When the menu is placed elsewhere, the default theme function marks it up.

All pointers appreciated!

Comments

jmlavarenne’s picture

http://api.drupal.org/api/function/theme_blocks/6

I think with will do the trick - switching on $region to provide another theme function for blocks for my target region.