function template_preprocess_views_bootstrap_table_plugin_style in Views Bootstrap 7.3
Same name and namespace in other branches
- 7.2 templates/table/theme.inc \template_preprocess_views_bootstrap_table_plugin_style()
Implementation of template preprocess for the view.
File
- templates/
table/ theme.inc, line 11 - Preprocessors and helper functions for theme theming.
Code
function template_preprocess_views_bootstrap_table_plugin_style(&$vars) {
template_preprocess_views_view_table($vars);
$vars['responsive'] = $vars['options']['responsive'];
$vars['classes_array'][] = 'table';
foreach ($vars['options']['bootstrap_styles'] as $style) {
$vars['classes_array'][] = 'table-' . $style;
}
}