Getting a node's menu, including parents

Events happening in the community are now at Drupal community events on www.drupal.org.
newz2000's picture

If I have a menu that looks like this:

Home
Products
... product a
... product b
... product c
Support
Partners
... Africa
... Americas
... Asia
... Europe
Contact

Is there a function I can call with the path or node id of, for example, "product c", that will return the menu that product c is in as well as the parent menus? For example, I'd love a structure that returned:

Home
Products
... product a
... product b
... product c (active)
Support
Partners
Contact

Comments

maybe menu_tree

newz2000's picture

It never fails, I search and search, finally break down and ask and then I find an answer right afterwards. Searching again lead me to menu_get_active_trail which helped me fine menu_tree. The name and the description look promising but I think I'm out of steam for today so will try it tomorrow. Any tips still greatly appreciated though! ;-)

--
Matthew Nuzum
newz2000 on freenode

Central Iowa Drupal Users Group

Group categories

Category

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: