1 views_ui.theme.inc | template_preprocess_views_ui_display_tab_setting(&$variables) |
File
- core/
modules/ views_ui/ views_ui.theme.inc, line 445 - Theme functions for the Views UI module.
Code
function template_preprocess_views_ui_display_tab_setting(&$variables) {
static $zebra = 0;
$variables['zebra'] = ($zebra % 2 === 0 ? 'odd' : 'even');
$zebra++;
// Put the main link to the left side
array_unshift($variables['settings_links'], $variables['link']);
$variables['settings_links'] = implode('<span class="label"> | </span>', $variables['settings_links']);
// Add classes associated with this display tab to the overall list.
$variables['classes'] = array_merge($variables['classes'], $variables['class']);
if (!empty($variables['defaulted'])) {
$variables['classes'][] = 'defaulted';
}
if (!empty($variables['overridden'])) {
$variables['classes'][] = 'overridden';
$variables['attributes']['title'][] = t('Overridden');
}
// Append a colon to the description, if requested.
if ($variables['description'] && $variables['description_separator']) {
$variables['description'] .= t(':');
}
}