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
| Name | Description |
|---|---|
| MENU_HELPER_RESET_NEW | |
| MENU_HELPER_RESET_NONE |
| Name | Description |
|---|---|
| menu_helper_reset_form_menu_edit_item_alter | Implementation of hook_form_FORM_ID_alter(). |
| menu_helper_reset_form_menu_edit_item_alter_submit | Set the menu item's reset_depth before the menu_edit_item form is submitted. |
| menu_helper_reset_tree | Render a menu tree based on the current path with menu item reset to selected reset depths. |
| menu_helper_reset_tree_page_data | Get 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_recursive | Recurse down the tree looking for a branch with a 'menu_helper_reset_depth' |
| _menu_helper_reset_place_branch | Place 'pruned' menu item branch as the first item of current branch. |
| _menu_helper_reset_place_reset_branch_recursive | Move a 'pruned' menu item branch to its selected reset depth. |