Adds the ability to reset an active menu item's depth.

This modules is extremely useful for managing a very large and deep site navigation tree. Being able to 'reset' the navigation eliminates the need to create multiple sub-navigation blocks that can become difficult to manage.

Inspired by the Menu block module's sorting code built by JohnAlbin.

Similar Modules

Constants

NameDescription
MENU_HELPER_RESET_NEW
MENU_HELPER_RESET_NONE

Functions

NameDescription
menu_helper_reset_form_menu_edit_item_alterImplementation of hook_form_FORM_ID_alter().
menu_helper_reset_form_menu_edit_item_alter_submitSet the menu item's reset_depth before the menu_edit_item form is submitted.
menu_helper_reset_treeRender a menu tree based on the current path with menu item reset to selected reset depths.
menu_helper_reset_tree_page_dataGet the data structure representing a named menu tree, based on the current page with any reset branches re-positioned.
_menu_helper_reset_get_reset_branches_recursiveRecurse down the tree looking for a branch with a 'menu_helper_reset_depth'
_menu_helper_reset_place_branchPlace 'pruned' menu item branch as the first item of current branch.
_menu_helper_reset_place_reset_branch_recursiveMove a 'pruned' menu item branch to its selected reset depth.