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

ainigma32’s picture

Status: Active » Postponed (maintainer needs more info)

Try 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

rpalomo’s picture

I 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.

ainigma32’s picture

@rpalomo: See http://drupal.org/node/383230#comment-1374838 Did you decide to stop pursuing this and go with an existing module?

- Arie

rpalomo’s picture

Yea I gave up on this and saw that the image menu was already a module

ainigma32’s picture

Status: Postponed (maintainer needs more info) » Fixed

OK, I'll set the issue to fixed then.

- Arie

Status: Fixed » Closed (fixed)
Issue tags: -menu, -theme, -theme hooks

Automatically closed -- issue fixed for 2 weeks with no activity.