Created
September 4, 2014 20:04
-
-
Save benjolabs/3dce1a8ad3d8410749dd to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* Custom implementation for press kit menu | |
*/ | |
function bc_theme_menu_link__menu-press-kit-submenu(array $variables) { | |
//add class for li | |
$variables['element']['#attributes']['class'][] = 'menu-' . $variables['element']['#original_link']['mlid']; | |
//add class for a | |
$variables['element']['#localized_options']['attributes']['class'][] = 'menu-' . $variables['element']['#original_link']['mlid']; | |
//dvm($variables['element']); | |
return theme_menu_link($variables); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment