menu.module

Version 1.229 (checked in on 2010/03/07 at 07:55:14 by webchick)

Allows administrators to customize the site navigation menu.

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.

Functions

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_alterImplements hook_form_alter(). Adds menu item fields to the node form.
menu_form_node_type_form_alterImplements hook_form_FORM_ID_alter() for the node type form. Adds menu options to the node type form.
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_form_submitSubmit handler for node form.
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_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 available menus and menu items as 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.