function template_preprocess_views_ui_display_tab_bucket

File

includes/admin.inc, line 1958

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'] : '';
}