function semanticviews_plugin_style_default::tokenize_class in Semantic Views 7
Return the token replaced class for the specified row.
File
- ./
semanticviews_plugin_style_default.inc, line 236 - Contains the default style plugin.
Class
- semanticviews_plugin_style_default
- Default style plugin to render rows one after another with no decorations.
Code
function tokenize_class($row_index, $class) {
// Replaces the # to the row enumeration.
$class = strtr($class, array(
'#' => $row_index,
));
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);
}