Version 1.431 (checked in on 2011/01/04 at 06:20:30 by dries)
API for the Drupal menu system.
| Name | Description |
|---|---|
| drupal_help_arg | Generates elements for the $arg array in the help hook. |
| menu_build_tree | Build a menu tree, translate links, and check access. |
| menu_cache_clear | Clears the cached cached data for a single named menu. |
| menu_cache_clear_all | Clears all cached menu data. This should be called any time broad changes might have been made to the router items or menu links. |
| menu_contextual_links | Retrieve contextual links for a system object based on registered local tasks. |
| menu_delete_links | Deletes all links for a menu. |
| menu_execute_active_handler | Execute the page callback associated with the current path. |
| menu_get_active_breadcrumb | Get the breadcrumb for the current page, as determined by the active trail. |
| menu_get_active_help | Returns the help associated with the active menu item. |
| menu_get_active_menu_names | Get the active menu for the current page - determines the active trail. |
| menu_get_active_title | Get the title of the current page, as determined by the active trail. |
| menu_get_active_trail | Gets the active trail (path to root menu root) of the current page. |
| menu_get_ancestors | Returns the ancestors (and relevant placeholders) for any given path. |
| menu_get_custom_theme | Gets the custom theme for the current page, if there is one. |
| menu_get_item | Get a router item. |
| menu_get_names | Build a list of named menus. |
| menu_get_object | Get a loaded object from a router item. |
| menu_get_router | Get the menu router. |
| menu_links_clone | Clone an array of menu links. |
| menu_link_children_relative_depth | Find the depth of an item's children relative to its depth. |
| menu_link_delete | Delete one or several menu links. |
| menu_link_get_preferred | Lookup the preferred menu link for a given system path. |
| menu_link_load | Get a menu link by its mlid, access checked and link translated for rendering. |
| menu_link_maintain | Insert, update or delete an uncustomized menu link related to a module. |
| menu_link_save | Save a menu link. |
| menu_list_system_menus | Return an array containing the names of system-defined (default) menus. |
| menu_load_links | Returns an array containing all links for a menu. |
| menu_local_actions | Returns the rendered local actions at the current level. |
| menu_local_tabs | Returns a renderable element for the primary and secondary tabs. |
| menu_local_tasks | Collects the local tasks (tabs), action links, and the root path. |
| menu_main_menu | Return an array of links to be rendered as the Main menu. |
| menu_navigation_links | Return an array of links for a navigation menu. |
| menu_primary_local_tasks | Returns the rendered local tasks at the top level. |
| menu_rebuild | (Re)populate the database tables used by various menu functions. |
| menu_reset_static_cache | Resets the menu system static cache. |
| menu_router_build | Collect and alter the menu definitions. |
| menu_secondary_local_tasks | Returns the rendered local tasks at the second level. |
| menu_secondary_menu | Return an array of links to be rendered as the Secondary links. |
| menu_set_active_item | Set the active path, which determines which page is loaded. |
| menu_set_active_menu_names | Set (or get) the active menu for the current page - determines the active trail. |
| menu_set_active_trail | Sets or gets the active trail (path to menu tree root) of the current page. |
| menu_set_custom_theme | Sets a custom theme for the current page, if there is one. |
| menu_set_item | Replaces the statically cached item for a given path. |
| menu_tab_root_path | Returns the router path, or the path of the parent tab of a default local task. |
| menu_tail_load | Loads path as one string from the argument we are currently at. |
| menu_tail_to_arg | Returns path as one string from the argument we are currently at. |
| menu_tree | Renders a menu tree based on the current path. |
| menu_tree_all_data | Get the data structure representing a named menu tree. |
| menu_tree_check_access | Check access and perform other dynamic operations for each link in the tree. |
| menu_tree_collect_node_links | Recursive helper function - collect node links. |
| menu_tree_data | Build the data representing a menu tree. |
| menu_tree_output | Returns a rendered menu tree. |
| menu_tree_page_data | Get the data structure representing a named menu tree, based on the current page. |
| menu_unserialize | Unserializes menu data, using a map to replace path elements. |
| template_preprocess_menu_tree | Preprocesses the rendered tree for theme_menu_tree(). |
| theme_menu_link | Returns HTML for a menu link and submenu. |
| theme_menu_local_action | Returns HTML for a single local action link. |
| theme_menu_local_task | Returns HTML for a single local task link. |
| theme_menu_local_tasks | Returns HTML for primary and secondary local tasks. |
| theme_menu_tree | Returns HTML for a wrapper for a menu sub-tree. |
| _menu_build_tree | Build a menu tree. |
| _menu_check_access | Check access to a menu item using the access callback |
| _menu_clear_page_cache | Helper function to clear the page and block caches at most twice per page load. |
| _menu_delete_item | Helper function for menu_link_delete; deletes a single menu link. |
| _menu_find_router_path | Find the router path which will serve this path. |
| _menu_item_localize | Localize the router item title using t() or another callback. |
| _menu_link_build | Builds a link from a router item. |
| _menu_link_find_parent | Find a possible parent for a given menu link. |
| _menu_link_map_translate | This function translates the path elements in the map using any to_arg helper function. These functions take an argument and return an object. See http://drupal.org/node/109153 for more information. |
| _menu_link_move_children | Update the children of a menu link that's being moved. |
| _menu_link_parents_set | Helper function that sets the p1..p9 values for a menu link being saved. |
| _menu_link_translate | This function is similar to _menu_translate() but does link-specific preparation such as always calling to_arg functions |
| _menu_load_objects | Loads objects into the map as defined in the $item['load_functions']. |
| _menu_navigation_links_rebuild | Helper function to build menu links for the items in the menu router. |
| _menu_router_build | Helper function to build the router table based on the data from hook_menu. |
| _menu_router_cache | Helper function to store the menu router if we have it in memory. |
| _menu_router_save | Helper function to save data from menu_router_build() to the router table. |
| _menu_set_expanded_menus | Helper function to update a list of menus with expanded items |
| _menu_site_is_offline | Checks whether the site is in maintenance mode. |
| _menu_translate | Handles dynamic path translation and menu access control. |
| _menu_tree_check_access | Recursive helper function for menu_tree_check_access() |
| _menu_tree_data | Recursive helper function to build the data representing a menu tree. |
| _menu_update_parental_status | Check and update the has_children status for the parent of a link. |
| Name | Description |
|---|---|
| MENU_ACCESS_DENIED | Internal menu status code -- Menu item access is denied. |
| MENU_CALLBACK | Menu type -- A hidden, internal callback, typically used for API calls. |
| MENU_CONTEXT_INLINE | Internal menu flag: Local task should be displayed inline. |
| MENU_CONTEXT_NONE | Internal menu flag: Invisible local task. |
| MENU_CONTEXT_PAGE | Internal menu flag: Local task should be displayed in page context. |
| MENU_CREATED_BY_ADMIN | Internal menu flag -- menu item was created by administrator. |
| MENU_DEFAULT_LOCAL_TASK | Menu type -- The "default" local task, which is initially active. |
| MENU_FOUND | Internal menu status code -- Menu item was found. |
| MENU_IS_LOCAL_ACTION | Internal menu flag -- menu item is a local action. |
| MENU_IS_LOCAL_TASK | Internal menu flag -- menu item is a local task. |
| MENU_IS_ROOT | Internal menu flag -- menu item is the root of the menu tree. |
| MENU_LINKS_TO_PARENT | Internal menu flag -- menu item links back to its parent. |
| MENU_LOCAL_ACTION | Menu type -- An action specific to the parent, usually rendered as a link. |
| MENU_LOCAL_TASK | Menu type -- A task specific to the parent item, usually rendered as a tab. |
| MENU_MAX_DEPTH | The maximum depth of a menu links tree - matches the number of p columns. |
| MENU_MAX_PARTS | The maximum number of path elements for a menu callback |
| MENU_MODIFIED_BY_ADMIN | Internal menu flag -- menu item can be modified by administrator. |
| MENU_NORMAL_ITEM | Menu type -- A "normal" menu item that's shown in menu and breadcrumbs. |
| MENU_NOT_FOUND | Internal menu status code -- Menu item was not found. |
| MENU_SITE_OFFLINE | Internal menu status code -- Menu item inaccessible because site is offline. |
| MENU_SITE_ONLINE | Internal menu status code -- Everything is working fine. |
| MENU_SUGGESTED_ITEM | Menu type -- A normal menu item, hidden until enabled by an administrator. |
| MENU_VISIBLE_IN_BREADCRUMB | Internal menu flag -- menu item is visible in the breadcrumb. |
| MENU_VISIBLE_IN_TREE | Internal menu flag -- menu item is visible in the menu tree. |