|
|
|
|
|
unserialize(data,
map)
The menu system uses serialized arrays stored in the database for
arguments. |
source code
|
|
|
|
|
|
|
|
|
|
execute_active_handler(path=None)
Execute the page callback associated with the current path |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
_translate(router_item,
map_,
to_arg=False)
Handles dynamic path translation and menu access control. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tree(menu_name='navigation')
Render a menu tree based on the current path. |
source code
|
|
|
|
|
|
|
|
|
|
tree_page_data(menu_name='navigation')
Get the data structure representing a named
menu tree, based on the current page. |
source code
|
|
|
|
_tree_cid(menu_name,
data)
Helper function - compute the real cache ID for menu tree data. |
source code
|
|
|
|
tree_collect_node_links(tree,
node_links)
Recursive helper function - collect node links. |
source code
|
|
|
|
tree_check_access(tree,
node_links={})
Check access and perform other dynamic operations for each link in the tree. |
source code
|
|
|
|
_tree_check_access(tree)
Recursive helper function for menu_tree_check_access() |
source code
|
|
|
|
|
|
|
_tree_data(result,
parents,
depth,
previous_element='')
Recursive helper function to build the data representing a menu tree. |
source code
|
|
|
|
theme_menu_item_link(link)
Generate the HTML output for a single menu link. |
source code
|
|
|
|
theme_menu_tree(tree)
Generate the HTML output for a menu tree |
source code
|
|
|
|
theme_menu_item(link,
has_children,
menu='',
in_active_trail=False,
extra_class=None)
Generate the HTML output for a menu item and submenu. |
source code
|
|
|
|
theme_menu_local_task(link,
active=False)
Generate the HTML output for a single local task link. |
source code
|
|
|
|
drupal_help_arg(arg=[])
Generates elements for the arg array in the help hook. |
source code
|
|
|
|
get_active_help()
Returns the help associated with the active menu item. |
source code
|
|
|
|
get_names(reset=False)
Build a list of named menus. |
source code
|
|
|
|
list_system_menus()
Return an array containing the names of system-defined (default) menus. |
source code
|
|
|
|
main_menu()
Return an array of links to be rendered as the Main menu. |
source code
|
|
|
|
secondary_menu()
Return an array of links to be rendered as the Secondary links. |
source code
|
|
|
|
|
|
|
|
|
|
primary_local_tasks()
Returns the rendered local tasks at the top level. |
source code
|
|
|
|
secondary_local_tasks()
Returns the rendered local tasks at the second level. |
source code
|
|
|
|
tab_root_path()
Returns the router path, or the path of the parent tab of a default
local task. |
source code
|
|
|
|
|
|
|
set_active_menu_name(menu_name=None)
Set (or get) the active menu for the current page -
determines the active trail. |
source code
|
|
|
|
get_active_menu_name()
Get the active menu for the current page - determines the active trail. |
source code
|
|
|
|
|
|
|
set_active_trail(new_trail=None)
Set (or get) the active trail for the current page -
the path to root in the menu tree. |
source code
|
|
|
|
get_active_trail()
Get the active trail for the current page - the path to
root in the menu tree. |
source code
|
|
|
|
get_active_breadcrumb()
Get the breadcrumb for the current page, as determined by the active trail. |
source code
|
|
|
|
get_active_title()
Get the title of the current page, as determined by the active trail. |
source code
|
|
|
|
link_load(mlid)
Get a menu link by its mlid, access checked and link
translated for rendering. |
source code
|
|
|
|
cache_clear(menu_name='navigation')
Clears the cached cached data for a single named menu. |
source code
|
|
|
|
|
|
|
|
|
|
router_build(reset=False)
Collect, alter and store the menu definitions. |
source code
|
|
|
|
_link_build(item)
Builds a link from a router item. |
source code
|
|
|
|
_navigation_links_rebuild(menu)
Helper function to build menu links for the items in the menu router. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
_clear_page_cache()
Helper function to clear the page and block caches
at most twice per page load. |
source code
|
|
|
|
_set_expanded_menus()
Helper function to update a list of menus with expanded items |
source code
|
|
|
|
|
|
|
link_maintain(plugin,
op,
link_path,
link_title)
Insert, update or delete an uncustomized menu link related to a plugin. |
source code
|
|
|
|
|
|
|
|
|
|
_update_parental_status(item,
exclude=False)
Check and update the has_children status for the parent of a link. |
source code
|
|
|
|
_link_parents_set(item,
parent)
Helper function that sets the p1..p9 values for a menu link being saved. |
source code
|
|
|
|
_router_build(callbacks)
Helper function to build the router table based on the data from hook_menu. |
source code
|
|
|
|
|
|
|
|
|
|
|