Same name and namespace in other branches
  1. 4.6.x includes/menu.inc \theme_menu_item_link()
  2. 4.7.x includes/menu.inc \theme_menu_item_link()
  3. 6.x includes/menu.inc \theme_menu_item_link()

Generate the HTML representing a given menu item ID.

Parameters

$item: The menu item to render.

$link_item: The menu item which should be used to find the correct path.

Related topics

1 theme call to theme_menu_item_link()
menu_item_link in includes/menu.inc
Returns the rendered link to a menu item.

File

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

Code

function theme_menu_item_link($item, $link_item) {
  return l($item['title'], $link_item['path'], !empty($item['description']) ? array(
    'title' => $item['description'],
  ) : array(), isset($item['query']) ? $item['query'] : NULL);
}