How can I render out my main menu as entirely expanded? I am working on mobile navigation and need to have the entire tree rendered out in my code for this to work the way I want it to. I do not want to make admins go into the menu and select "expanded" every time they create a child item. Can this be done with a module or

1 Answer 1


I think menu_tree_all_data should do the trick.

You will need to put this in a custom module and then loop over the array to manually build your menu.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.