menu_tree_page_data should accept a path or menu_item as argument

Created on 21 August 2012, about 12 years ago
Updated 17 July 2023, about 1 year ago

We can now change the #520106: Allow setting the active menu trail for dynamically-generated menu paths. . For me this look like a hack but I have to say the menu system is complicated and I perhaps don't get all the incidence.

Now the signature of the function is

menu_tree_page_data($menu_name, $max_depth = NULL, $only_active_trail = FALSE);

But you have now way to build a breadcrumb based of an other node than the active one. Anyways it look cleaner to me to always give the active_path instead of finding it inside the function.

So we can add active_path as an argument and use this signature

menu_tree_page_data($menu_name, $max_depth = NULL, $only_active_trail = FALSE, $active_path = NULL);
Feature request
Status

Postponed: needs info

Version

9.5

Component
Menu system 

Last updated 1 day ago

Created by

🇨🇭Switzerland gagarine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024