1 views_ui.theme.inc theme_views_ui_expose_filter_form($variables)

Theme the expose filter form.

File

core/modules/views_ui/views_ui.theme.inc, line 157
Theme functions for the Views UI module.

Code

function theme_views_ui_expose_filter_form($variables) {
  $form = $variables['form'];
  $more = backdrop_render($form['more']);

  $output = backdrop_render($form['form_description']);
  $output .= backdrop_render($form['expose_button']);
  $output .= backdrop_render($form['group_button']);
  if (isset($form['required'])) {
    $output .= backdrop_render($form['required']);
  }
  $output .= backdrop_render($form['label']);
  $output .= backdrop_render($form['description']);

  $output .= backdrop_render($form['operator']);
  $output .= backdrop_render($form['value']);

  if (isset($form['use_operator'])) {
    $output .= '<div class="views-left-40">';
    $output .= backdrop_render($form['use_operator']);
    $output .= '</div>';
  }

  // Only output the right column markup if there's a left column to begin with
  if (!empty($form['operator']['#type'])) {
    $output .= '<div class="views-right-60">';
    $output .= backdrop_render_children($form);
    $output .= '</div>';
  }
  else {
    $output .= backdrop_render_children($form);
  }

  $output .= $more;

  return $output;
}