Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By kumkum29 on
Hello,
I want to get all the children mlids of a specific parent item.
I have tested several drupal function without results.
Is it possible to get the children mlids of a parent item ?
Which function do I use for this ?
Thanks for your help.
Comments
What is your goal for a non
What is your goal for a non-technical perspective, are you trying to get all the menu children of the currently active menu item?
Hello,
Hello,
it's a little complicated. I have an important number of node (news) in a parent node (news list).
When I edits a node, the list options of the menu are too important and the menu list is not easy to use. I want hide the childrens of this "news list" page in this menu.
I have the mlid of the parent item (news list), but I want to get all the mlids of the childrens for hide these nodes in the list of the menu.
Thanks.
Hi,
Hi,
I know that come really late but if that can help anyone, this is the function that I use to create an array with mlid from a simple mlid:
And if you need to integrate it:
Hope that help anyone !