By Balth on
Hello,
I want to get list of children and grandchildren depending of a menu entry.
Menu tree example :
Hello World
- Welcome
- Good Mornig
- Good Night
- Thanks
- Etc..
I'm looking for a function that will give menu the complete list of name in this menu tree?
Does it exists a function in menu module that does that?
Thanks in advance.
Comments
You could try the
You could try the menu_tree_page_data function or the menu_tree_all_data function.
Thanks for the answer. But I
Thanks for the answer.
But I realize now, I didn't asked the right question.
Does it exist a function that return all the offspring of a menu item when we give it "mlid" or "p1" of the item?
Thanks in advance.
I'm not sure if I understand
I'm not sure if I understand your question correctly. But you could check the 'includes/menu.inc' file to see if there is a function that you could use.