Posted by newz2000 on August 17, 2011 at 10:27pm
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
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