1 views_plugin_exposed_form_input_required.inc views_plugin_exposed_form_input_required::query()

Add anything to the query that we might need to.

Overrides views_plugin_exposed_form::query

File

core/modules/views/plugins/views_plugin_exposed_form_input_required.inc, line 83
Definition of views_plugin_exposed_form_input_required.

Class

views_plugin_exposed_form_input_required
Exposed form plugin that provides an exposed form with required input.

Code

function query() {
  if (!$this->exposed_filter_applied()) {
    // We return with no query; this will force the empty text.
    $this->view->built = TRUE;
    $this->view->executed = TRUE;
    $this->view->result = array();
  }
  else {
    parent::query();
  }
}