You are here

function admin_menu_item_link in Administration menu 5

Same name and namespace in other branches
  1. 6 admin_menu.module \admin_menu_item_link()

Returns the rendered link to a menu item.

Parameters

$mid: The menu item id to render.

1 call to admin_menu_item_link()
theme_admin_menu_item in ./admin_menu.inc

File

./admin_menu.inc, line 233

Code

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

  // display menu item ids if enabled (devel)
  if (variable_get('admin_menu_show_item_ids', 0)) {
    $item['title'] = $item['title'] . ' (' . $mid . ')';
  }

  // Remove menu item tooltips due to mouseover clashes.
  unset($item['description']);
  return theme('menu_item_link', $item, $link_item);
}