menu.module

Version 1.217 (checked in on 2009/11/08 at 10:02:41 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_infoImplement hook_block_info().
menu_block_viewImplement hook_block_view().
menu_block_view_alterImplement hook_block_view_alter().
menu_deleteDelete a custom menu and all contained links.
menu_enableImplement hook_enable().
menu_form_alterImplement hook_form_alter(). Adds menu item fields to the node form.
menu_form_node_type_form_alterImplement 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_helpImplement hook_help().
menu_loadLoad the data for a single custom menu.
menu_menuImplement hook_menu().
menu_node_deleteImplement hook_node_delete().
menu_node_form_submitSubmit handler for node form.
menu_node_insertImplement hook_node_insert().
menu_node_prepareImplement hook_node_prepare().
menu_node_saveHelper for hook_node_insert() and hook_node_update().
menu_node_updateImplement 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_permissionImplement hook_permission().
menu_reset_itemReset a system-defined menu item.
menu_saveSave a custom menu.
menu_themeImplement 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.
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.