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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -