Created
November 21, 2013 20:19
-
-
Save benschaaf/7588886 to your computer and use it in GitHub Desktop.
Wrap the link title in a span, that will get display none. I could have also just removed the title, but I wanted it there for SEO (I guess)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function ross_menu_link__menu_block__menu_social(array $variables) { | |
$element = $variables['element']; | |
$sub_menu = ''; | |
if ($element['#below']) { | |
$sub_menu = drupal_render($element['#below']); | |
} | |
$element['#localized_options']['html'] = TRUE; | |
$element['#title'] = '<span>' . $element['#title'] . '</span>'; | |
$output = l($element['#title'], $element['#href'], $element['#localized_options']); | |
return '<li ' . drupal_attributes($element['#attributes']) . '>' . $output . $sub_menu . "</li>\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment