You are here

function template_preprocess_views_ui_display_tab_bucket in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 8.3 views_ui/theme/theme.inc \template_preprocess_views_ui_display_tab_bucket()

File

includes/admin.inc, line 1945
Provides the Views' administrative interface.

Code

function template_preprocess_views_ui_display_tab_bucket(&$variables) {
  $element = $variables['element'];
  $variables['item_help_icon'] = '';
  if (!empty($element['#item_help_icon'])) {
    $variables['item_help_icon'] = render($element['#item_help_icon']);
  }
  if (!empty($element['#name'])) {
    $variables['classes_array'][] = drupal_clean_css_identifier(strtolower($element['#name']));
  }
  if (!empty($element['#overridden'])) {
    $variables['classes_array'][] = 'overridden';
    $variables['attributes_array']['title'][] = t('Overridden');
  }
  $variables['content'] = $element['#children'];
  $variables['title'] = $element['#title'];
  $variables['actions'] = !empty($element['#actions']) ? $element['#actions'] : '';
}