Allows menu administrators to assign any path or pattern to set the active menu item.

The module can be used with PathAuto to select the active menu item by the selected content-type. For example, a press release with the url http://example.com/press-releases/2008/2008-01-10-big-news can be figured to always show the main 'Press Release' page (aka view) as active menu item.

Note:

  • The active menu item will only be reset when there is no active menu item for the current page.
  • This modules briefly resets the current path using menu_set_item() and menu_get_item() while a menu is being rendered.
Similar/Related Modules Additional Discussion/Questions

Functions

NameDescription
menu_helper_active_item_state_offRestore $_GET[q] its orginal value.
menu_helper_active_item_state_onReset $_GET[q] to custom active path.
menu_helper_active_menuImplementation of hook_menu().
_menu_helper_active_get_active_pathGet active menu path for the current page.
_menu_helper_active_is_current_menu_item_a_menu_linkCheck to see if the current menu (router) item is a menu link.
_menu_helper_active_is_current_path_a_menu_linkCheck to see if the current path is a menu link.
_menu_helper_active_item_stateSet the active item state to use custom active path.