You are here

public function views_plugin_exposed_form_input_required::query in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/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

plugins/views_plugin_exposed_form_input_required.inc, line 103
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

public 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();
  }
}