[themes] Function to print the secondary element of a non-active menu?

danyv at focusweb.ca danyv at focusweb.ca
Wed Sep 12 19:26:09 UTC 2007


I found this function yesterday, my problem was that I was trying to  
get it to display the whole sub level of a primary link so it never  
printed what I needed.  I managed to do this today using what you  
suggested but with a new block instead of using the secondary links.

Thanks for the help.

Quoting Victor Kane <victorkane at gmail.com>:

> Among the functions listed in the Drupal docs for Drupal 5.x (see
> http://api.drupal.org/api/group/menu/5 ) are
>
> theme_menu_tree(pid)     (where pid is the parent id)
>
> theme_menu_item(), which would be used in the following manner (we
> don't call theming functions directly, but via the theme() function):
>
> theme(menu_item, 80, FALSE)
>
> where 80 is the mid (menu item id)
>
> just as an example.
>
> Victor Kane
> http://awebfactory.com.ar

FocusWeb
(514)278-1573




More information about the themes mailing list