Adds submenu blocks which can be used to display an active menu item's children.

This modules displays the children and expanded children in customizable themable block. Menu administrators can select how the submenu will be rendered from several common navigation styles, including list and dropdown menus. Every menu's submenu settings are inheritted its children.

TODO

  • Add tokens to the title's naming convention
  • Show inheritted settings when editing menu item's Submenu setting. Very tricky!
Similar Modules

Constants

NameDescription
MENU_HELPER_SUBMENU_BACK_INHERIT
MENU_HELPER_SUBMENU_BACK_NO
MENU_HELPER_SUBMENU_BACK_YES
MENU_HELPER_SUBMENU_DESCRIPTION_INHERIT
MENU_HELPER_SUBMENU_DESCRIPTION_NO
MENU_HELPER_SUBMENU_DESCRIPTION_YES
MENU_HELPER_SUBMENU_DROPDOWN_SUBMIT_NO
MENU_HELPER_SUBMENU_DROPDOWN_SUBMIT_YES
MENU_HELPER_SUBMENU_TYPE_DROPDOWN
MENU_HELPER_SUBMENU_TYPE_DT
MENU_HELPER_SUBMENU_TYPE_INHERIT
MENU_HELPER_SUBMENU_TYPE_NONE
MENU_HELPER_SUBMENU_TYPE_OL
MENU_HELPER_SUBMENU_TYPE_TREE
MENU_HELPER_SUBMENU_TYPE_UL

Functions

NameDescription
menu_helper_submenu_blockImplementation of hook_block().
menu_helper_submenu_dropdown_formSubmenu dropdown form
menu_helper_submenu_dropdown_form_submitRender submenu dropdown form submission handler which is just a redirect
menu_helper_submenu_form_alterImplementation of hook_form_alter().
menu_helper_submenu_form_menu_edit_item_alterImplementation of hook_form_FORM_ID_alter().
menu_helper_submenu_form_menu_edit_item_alter_submitSet the menu item's reset_depth before the menu_edit_item form is submitted.
menu_helper_submenu_menuImplementation of hook_menu().
menu_helper_submenu_nodeapiImplementation of hook_nodeapi().
menu_helper_submenu_themeImplementation of hook_theme().
theme_menu_helper_submenuTheme submenu (block) content
theme_menu_helper_submenu_backTheme back to parent
theme_menu_helper_submenu_definitionTheme submenu tree as definition list.
theme_menu_helper_submenu_dropdownTheme submenu tree as dropdown (aka select menu)
theme_menu_helper_submenu_linksTheme submenu links by settings['type'];
theme_menu_helper_submenu_listTheme submenu tree using the default menu tree output.
theme_menu_helper_submenu_titleTheme submenu title
theme_menu_helper_submenu_treeTheme submenu tree using the default menu tree output.
_menu_helper_submenu_block_viewDisplay submenu block
_menu_helper_submenu_dropdown_form_options_recurseLoops and recurses a menu tree to build a dropdown select options.
_menu_helper_submenu_get_active_branchGet active branch from tree
_menu_helper_submenu_get_back_optionsGet submenu back options
_menu_helper_submenu_get_description_optionsGet submenu description options
_menu_helper_submenu_get_dropdown_submit_optionsGet submenu dropdown submit options
_menu_helper_submenu_get_type_optionsGet submenu type options
_menu_helper_submenu_set_active_menu_infoGet current menu items by looking up menu/link by path or href.
_menu_helper_submenu_set_active_menu_itemGet first found active menu item (with just the mlid, menu_name, and depth).
_menu_helper_submenu_set_form_weightsSet form elements weight