I need to add a span tag before mt
if i add like
function mytheme_link($variables) {
return '<span><a href="' . check_plain(url($variables['path'], $variables['options'])) . '"' . drupal_attributes($variables['options']['attributes']) . '>' . ($variables['options']['html'] ? $variables['text'] : check_plain($variables['text'])) . '</a></span>';
}
it will add for all the menus
and if i use
function mytheme_menu_link($link) {
if (empty($link['localized_options'])) {
$link['localized_options'] = array();
}
$link['localized_options']['html'] = TRUE; //let l function know that our link title includes html
return '<span>'.l($link['title'], $link['href'], $link['localized_options']).'</span>';
}
it does not add at all.