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