function farm_theme_preprocess_menu_link in farmOS 7
Implements hook_preprocess_menu_link().
File
- themes/
farm_theme/ template.php, line 29 - Farm theme template.php.
Code
function farm_theme_preprocess_menu_link(&$vars) {
// Give each menu item a CSS class according to its title.
if (!empty($vars['element']['#title'])) {
$title = $vars['element']['#title'];
$class = drupal_html_class($title);
$vars['element']['#localized_options']['attributes']['class'][] = $class;
}
}