theme.inc in Views Bootstrap 7.2
Same filename in this branch
Same filename and directory in other branches
File
templates/accordion/theme.incView source
<?php
/**
* Implementation of template preprocess for the view.
*/
function template_preprocess_views_bootstrap_accordion_plugin_style(&$vars) {
$view =& $vars['view'];
$title_field = $vars['options']['title_field'];
// Get titles.
if (isset($view->field[$title_field])) {
foreach (array_keys($vars['rows']) as $key) {
$vars['titles'][$key] = $view->style_plugin
->get_field($key, $title_field);
}
}
}
Functions
Name![]() |
Description |
---|---|
template_preprocess_views_bootstrap_accordion_plugin_style | Implementation of template preprocess for the view. |