Allows administrators to customize the site's menus.

A menu (in this context) is a hierarchical collection of links, generally used for navigation. This is not to be confused with the Menu system of menu.inc and hook_menu(), which defines page routing requests for Backdrop. The menu system also allows the defined page routing URLs to be added to these menus.

File

core/modules/menu/menu.module

Functions

Namesort ascending Description
_menu_parent_depth_limit Find the depth limit for items in the parent select.
_menu_parents_recurse Recursive helper function for menu_parent_options().
_menu_get_options Helper function to get the items of the given menu.
_menu_get_menu_weight_delta Calculate the delta for the weight element for a given set of menus.
menu_update_parent_options_ajax Ajax callback to replace the menu item parent options.
menu_theme Implements hook_theme().
menu_save Save a custom menu.
menu_reset_item Reset a system-defined menu link.
menu_preprocess_block Implements hook_preprocess_block().
menu_permission Implements hook_permission().
menu_parent_options_js Page callback. Get all the available menus and menu items as a JavaScript array.
menu_parent_options Return a list of menu items that are valid possible parents for the given menu item.
menu_overview_title Title callback for the menu overview page and links.
menu_node_update Implements hook_node_update().
menu_node_type_load Implements hook_node_type_load()
menu_node_submit Implements hook_node_submit().
menu_node_save Helper for hook_node_insert() and hook_node_update().
menu_node_prepare Implements hook_node_prepare().
menu_node_predelete Implements hook_node_predelete().
menu_node_insert Implements hook_node_insert().
menu_menu_local_tasks_alter Implements hook_menu_local_tasks_alter().
menu_menu Implements hook_menu().
menu_load_all Load all custom menu data.
menu_load Load the data for a single custom menu.
menu_get_menus Return an associative array of the custom menus names.
menu_form_node_type_form_alter Implements hook_form_FORM_ID_alter().
menu_form_node_form_alter Implements hook_form_BASE_FORM_ID_alter().
menu_enable Implements hook_enable().
menu_delete Delete a custom menu and all contained links.
menu_config_info Implements hook_config_info().
menu_block_view_alter Implements hook_block_view_alter().
menu_block_view Implements hook_block_view().
menu_block_info Implements hook_block_info().
menu_block_configure Implements hook_block_configure().

Constants

Namesort ascending Description
MENU_MAX_MENU_NAME_LENGTH_UI Maximum length of menu name as entered by the user. Database length is 32 and we add a menu- prefix.