You are here

function theme_responsive_menu_link in Responsive and off-canvas menu 7.2

Same name and namespace in other branches
  1. 7.3 theme/theme.inc \theme_responsive_menu_link()
  2. 7 theme/theme.inc \theme_responsive_menu_link()

Returns HTML for a menu link and submenu.

Parameters

$variables: An associative array containing:

  • element: Structured array data for a menu link.

File

theme/theme.inc, line 12

Code

function theme_responsive_menu_link(array $variables) {
  $element = $variables['element'];
  $sub_menu = '';
  $output = l($element['#title'], $element['#href'], $element['#localized_options']);
  if ($element['#below']) {
    $sub_menu = drupal_render($element['#below']);
    $mlid = $element['#original_link']['mlid'];
  }
  return '<li' . drupal_attributes($element['#attributes']) . '>' . $output . $sub_menu . "</li>\n";
}