theme_menu_item_link
Definition
theme_menu_item_link($item, $link_item)
includes/menu.inc, line 699
Description
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
| Name | Description |
|---|---|
| Menu system | Define the navigation menus, and route page requests to code based on URLs. |
| Themeable functions | Functions that display HTML, and which can be customized by themes. |
Code
<?php
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);
}
?> 