function template_preprocess_views_ui_display_tab_setting in Views (for Drupal 7) 8.3
Same name and namespace in other branches
- 7.3 includes/admin.inc \template_preprocess_views_ui_display_tab_setting()
File
- views_ui/
theme/ theme.inc, line 18 - Preprocessors and theme functions for the Views UI.
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']);
if (!empty($variables['defaulted'])) {
$variables['attributes']['class'][] = 'defaulted';
}
if (!empty($variables['overridden'])) {
$variables['attributes']['class'][] = 'overridden';
$variables['attributes_array']['title'][] = t('Overridden');
}
// Append a colon to the description, if requested.
if ($variables['description'] && $variables['description_separator']) {
$variables['description'] .= t(':');
}
}