menu.module

Version 1.234 (checked in on 2011/02/19 at 00:09:11 by dries)

Allows administrators to customize the site navigation menu.

Functions & methods

NameDescription
menu_block_infoImplements hook_block_info().
menu_block_viewImplements hook_block_view().
menu_block_view_alterImplements hook_block_view_alter().
menu_deleteDelete a custom menu and all contained links.
menu_enableImplements hook_enable().
menu_form_node_form_alterImplements hook_form_BASE_FORM_ID_alter().
menu_form_node_type_form_alterImplements hook_form_FORM_ID_alter().
menu_get_menusReturn an associative array of the custom menus names.
menu_helpImplements hook_help().
menu_loadLoad the data for a single custom menu.
menu_load_allLoad all custom menu data.
menu_menuImplements hook_menu().
menu_node_deleteImplements hook_node_delete().
menu_node_insertImplements hook_node_insert().
menu_node_prepareImplements hook_node_prepare().
menu_node_saveHelper for hook_node_insert() and hook_node_update().
menu_node_submitImplements hook_node_submit().
menu_node_updateImplements hook_node_update().
menu_overview_titleTitle callback for the menu overview page and links.
menu_parent_optionsReturn a list of menu items that are valid possible parents for the given menu item.
menu_parent_options_jsPage callback. Get all the available menus and menu items as a JavaScript array.
menu_permissionImplements hook_permission().
menu_reset_itemReset a system-defined menu link.
menu_saveSave a custom menu.
menu_themeImplements hook_theme().
_menu_get_optionsHelper function to get the items of the given menu.
_menu_parents_recurseRecursive helper function for menu_parent_options().
_menu_parent_depth_limitFind the depth limit for items in the parent select.

Constants

NameDescription
MENU_MAX_MENU_NAME_LENGTH_UIMaximum length of menu name as entered by the user. Database length is 32 and we add a menu- prefix.