function claro_preprocess_views_ui_rearrange_filter_form

Same name and namespace in other branches
  1. 10 core/themes/claro/claro.theme \claro_preprocess_views_ui_rearrange_filter_form()
  2. 11.x core/themes/claro/claro.theme \claro_preprocess_views_ui_rearrange_filter_form()

Implements hook_form_FORM_ID_alter() for the Views UI rearrange filter form.

File

core/themes/claro/claro.theme, line 1533

Code

function claro_preprocess_views_ui_rearrange_filter_form(array &$variables) {
    foreach ($variables['table']['#rows'] as &$row) {
        // Remove the container-inline class from the operator table cell.
        if (isset($row['data'][0]['class'])) {
            $row['data'][0]['class'] = array_diff($row['data'][0]['class'], [
                'container-inline',
            ]);
        }
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.