You are here

function menu_item_link in Drupal 4

Same name and namespace in other branches
  1. 5 includes/menu.inc \menu_item_link()

Returns the rendered link to a menu item.

Parameters

$mid: The menu item id to render.

Related topics

4 calls to menu_item_link()
menu_get_active_breadcrumb in includes/menu.inc
Returns an array of rendered menu items in the active breadcrumb trail.
menu_primary_links in includes/menu.inc
Returns an array containing the primary links. Can optionally descend from the root of the Primary links menu towards the current node for a specified number of levels and return that submenu. Used to generate a primary/secondary menu from different…
theme_menu_item in includes/menu.inc
Generate the HTML output for a single menu item.
theme_menu_local_task in includes/menu.inc
Generate the HTML representing a given menu item ID as a tab.

File

includes/menu.inc, line 709
API for the Drupal menu system.

Code

function menu_item_link($mid) {
  $item = menu_get_item($mid);
  $link_item = $item;
  while ($link_item['type'] & MENU_LINKS_TO_PARENT) {
    $link_item = menu_get_item($link_item['pid']);
  }
  return theme('menu_item_link', $item, $link_item);
}