I'm working on a module that will allow to specify a class and a picture to the menus and at is not specific to a theme. but when I'm in the mytheme_menu_item or mytheme_menu_tree functions I don't know the name of the menu i'm working on, nor something that will identify the menu name.
Do you know what can I do to get to it?
for example in the mytheme_menu_item_link the $link[menu_name] contains the name, but i don't see anything on the argument of the other theme hooks that would do the trick.
any ideas?
Drupal 6.9
Windows and MYSQL
Comments
Comment #1
ainigma32 commentedTry installing the Devel module. You will be able to look at all the variables that are available to the theme.
Please post back how that works out for you.
- Arie
Comment #2
rpalomo commentedI did install the devel module but it messes up my menus when enabling the developer theme, So I can' see what variables are set, i can see for other menus but nothing pops out as telling me which menu is being built at the time of the menu_Tree.
Comment #3
ainigma32 commented@rpalomo: See http://drupal.org/node/383230#comment-1374838 Did you decide to stop pursuing this and go with an existing module?
- Arie
Comment #4
rpalomo commentedYea I gave up on this and saw that the image menu was already a module
Comment #5
ainigma32 commentedOK, I'll set the issue to fixed then.
- Arie