function template_preprocess_views_bootstrap_carousel_plugin_rows in Views Bootstrap 7.3
Same name and namespace in other branches
- 7 templates/carousel/theme.inc \template_preprocess_views_bootstrap_carousel_plugin_rows()
- 7.2 templates/carousel/theme.inc \template_preprocess_views_bootstrap_carousel_plugin_rows()
Implementation of template preprocess for the view fields.
File
- templates/
carousel/ theme.inc, line 52 - Preprocessors and helper functions for carousel theming.
Code
function template_preprocess_views_bootstrap_carousel_plugin_rows(&$vars) {
$view =& $vars['view'];
// Clone value because get_field will unset it.
$row_index = $view->row_index;
foreach ($vars['options'] as $id => $field) {
if (isset($view->field[$field])) {
$vars[$id] = $view->style_plugin
->get_field($row_index, $field);
}
}
}