Add an option to display the full menu tree, i.e. allow overriding the expand checkbox of individual menu items. This is helpful when a menu should be output in full without limiting to the active tree.

CommentFileSizeAuthor
#2 2945085-expand-menu.patch1.24 KBsmk-ka

Comments

smk-ka created an issue. See original summary.

smk-ka’s picture

Status: Active » Needs review
StatusFileSize
new1.24 KB

This patch expands the parameters to drupal_menu($menu_name, $level = 1, $depth = 0, $expand = FALSE). Setting $expand to TRUE displays the menu tree expanded.
The code has been borrowed from Menu Block module.

  • Chi committed ce15ad1 on 8.x-2.x authored by smk-ka
    Issue #2945085 by smk-ka: Add option to expand menu items
    
chi’s picture

Status: Needs review » Fixed

Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

dan_rogers’s picture

If anyone else stumbles across this, worth noting, this has been committed, at least in 2.x. I have updated the cheat sheet to reflect that the "expand all" is now available.