You are here

function theme_menu_item_link in Drupal 6

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

Generate the HTML output for a single menu link.

Related topics

2 theme calls to theme_menu_item_link()
menu_local_tasks in includes/menu.inc
Collects the local tasks (tabs) for a given level.
menu_tree_output in includes/menu.inc
Returns a rendered menu tree.

File

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

Code

function theme_menu_item_link($link) {
  if (empty($link['localized_options'])) {
    $link['localized_options'] = array();
  }
  return l($link['title'], $link['href'], $link['localized_options']);
}