theme_menu_item_link

Definition

theme_menu_item_link($link)
drupal/includes/menu.inc, line 1228

Description

Generate the HTML output for a single menu link.

Related topics

Namesort iconDescription
Default theme implementationsFunctions and templates that present output to the user, and can be implemented by themes.
Menu systemDefine the navigation menus, and route page requests to code based on URLs.

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']);
}