theme_menu_tree question

Events happening in the community are now at Drupal community events on www.drupal.org.
kramazeek's picture

Hi everyone,

Would anyone happen to know of anyway to tell what the menu name is while using theme_menu_tree? I need something like this to test against for theming purposes.

themename_menu_tree($tree){
If($menu_name == 'navigation'){
//do something different
}else{
//or return the standard output
return '

';
}
}

The problem is by the time things get this far the menu has already been rendered for final output and you are working with just a string. Ultimately I need to alter a menu markup based on theme settings and the menu name. Anyone know if this is possible in the theme layer?

Thanks,

-Mike

Theme development

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: