function views_plugin_style::get_row_class
3.x views_plugin_style.inc | views_plugin_style::get_row_class($row_index) |
Return the token replaced row class for the specified row.
File
- plugins/
views_plugin_style.inc, line 123 - Definition of views_plugin_style.
Class
- views_plugin_style
- Base class to define a style plugin handler.
Code
function get_row_class($row_index) {
if ($this->uses_row_class()) {
$class = $this->options['row_class'];
if ($this->uses_fields() && $this->view->field) {
$class = strip_tags($this->tokenize_value($class, $row_index));
}
$classes = explode(' ', $class);
foreach ($classes as &$class) {
$class = drupal_clean_css_identifier($class);
}
return implode(' ', $classes);
}
}