drupal - Theme a custom menu with theme_menu_tree() -
i'm trying override custom menu output in block instead of
<ul class="menu">...</ul>
i can
<select name="menu title">...</select>
in drupal 6, use function theme_menu_tree($tree,$menu_name="") {...}
doesn't work in drupal 7 function theme_menu_tree($variables) {...}
.
i've tried theme_menu_tree__mymenu($variables) {...}
no success. how specify unique menu in drupal 7?
thanks.
i had same problem overriding , correct naming of theme_menu_tree function specific menu name. found suppose correct name of function should be: your_themename_menu_tree__your_menuname
the name of menu taken administration » structure » menus pages. seems me drupal adds word "menu" before of new user menus. in case created menu called "testing menu" in theme "mytheme" , name of overriding function was: mytheme_menu_tree__menu_testing_menu
Comments
Post a Comment