Skip to main content
deleted 1 characters in body; added 1 characters in body
Source Link
WestieUK
  • 3.8k
  • 18
  • 34
added 1 characters in body
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

Try this, http://api.drupal.org/api/drupal/includes--theme.inc/function/theme_links/7:

function THEMENAME_links__system_MENUNAME_menu($variables) {
  $output = '';
  foreach ($variables['links'] as $link) {
    $output .= l(<li''<li' . drupal_attributes(array('class' => $class)) . '>' .'<span>'. check_plain($link['title']) .'</span>' . '</li>', $link['href'], $link);
  }
  return $output;
}

Is the <li> inside the <a>?

Try this, http://api.drupal.org/api/drupal/includes--theme.inc/function/theme_links/7:

function THEMENAME_links__system_MENUNAME_menu($variables) {
  $output = '';
  foreach ($variables['links'] as $link) {
    $output .= l(<li' . drupal_attributes(array('class' => $class)) . '>' .'<span>'. check_plain($link['title']) .'</span>' . '</li>', $link['href'], $link);
  }
  return $output;
}

Is the <li> inside the <a>?

Try this, http://api.drupal.org/api/drupal/includes--theme.inc/function/theme_links/7:

function THEMENAME_links__system_MENUNAME_menu($variables) {
  $output = '';
  foreach ($variables['links'] as $link) {
    $output .= l('<li' . drupal_attributes(array('class' => $class)) . '>' .'<span>'. check_plain($link['title']) .'</span>' . '</li>', $link['href'], $link);
  }
  return $output;
}

Is the <li> inside the <a>?

added 31 characters in body
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

Try this, http://api.drupal.org/api/drupal/includes--theme.inc/function/theme_links/7:

function THEMENAME_links__system_MENUNAME_menu($variables) {
  $output = '';
  foreach ($variables['links'] as $link) {
    $output .= l(<li' . drupal_attributes(array('class' => $class)) . '>' .'<span>'. check_plain($link['title']) .'</span>' . '</li>', $link['href'], $link);
  }
  return $output;
}
function THEMENAME_links__system_MENUNAME_menu($variables) {
  $output = '';
  foreach ($variables['links'] as $link) {
    $output .= l(<li' . drupal_attributes(array('class' => $class)) . '>' .'<span>'. check_plain($link['title']) .'</span>' . '</li>', $link['href'], $link);
  }
  return $output;
}

Is the <li> inside the <a>?

Try this, http://api.drupal.org/api/drupal/includes--theme.inc/function/theme_links/7:

function THEMENAME_links__system_MENUNAME_menu($variables) {
  $output = '';
  foreach ($variables['links'] as $link) {
    $output .= l(<li' . drupal_attributes(array('class' => $class)) . '>' .'<span>'. check_plain($link['title']) .'</span>' . '</li>', $link['href'], $link);
  }
  return $output;
}

Is the <li> inside the <a>?

Try this, http://api.drupal.org/api/drupal/includes--theme.inc/function/theme_links/7:

function THEMENAME_links__system_MENUNAME_menu($variables) {
  $output = '';
  foreach ($variables['links'] as $link) {
    $output .= l(<li' . drupal_attributes(array('class' => $class)) . '>' .'<span>'. check_plain($link['title']) .'</span>' . '</li>', $link['href'], $link);
  }
  return $output;
}

Is the <li> inside the <a>?

Source Link
WestieUK
  • 3.8k
  • 18
  • 34
Loading