function brainstorm_theme_preprocess_views_view_fields in Brainstorm profile 7
Implements hook_preprocess_views_view_fields().
File
- themes/
brainstorm_theme/ template.php, line 335 - Process theme data.
Code
function brainstorm_theme_preprocess_views_view_fields(&$vars) {
$view = $vars['view'];
$vars['class_row'] = '';
if (isset($vars['row']->field_field_animation[0])) {
$title = $vars['row']->field_field_animation[0]['raw']['taxonomy_term']->name;
$class_row = str_replace(' ', '-', strtolower($title));
$vars['class_row'] = $class_row;
}
}