function theme_site_map_menu_link in Site map 7
Same name and namespace in other branches
- 8 site_map.theme.inc \theme_site_map_menu_link()
Returns HTML for a menu link and submenu.
This is a one by one clone of the core theme_menu_link() function that allows custom theming of the site map page items.
Parameters
array $variables: An associative array containing:
- element: Structured array data for a menu link.
Return value
string Returns html string for menu link.
File
- includes/
site_map.theme.inc, line 165 - site_map.theme.inc
Code
function theme_site_map_menu_link(array $variables) {
$element = $variables['element'];
$sub_menu = '';
if ($element['#below']) {
$sub_menu = drupal_render($element['#below']);
}
$output = l($element['#title'], $element['#href'], $element['#localized_options']);
return '<li' . drupal_attributes($element['#attributes']) . '>' . $output . $sub_menu . "</li>\n";
}