function views_plugin_exposed_form_input_required::query in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 7.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 81
Class
- views_plugin_exposed_form_input_required
- Exposed form plugin that provides basic exposed form
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();
}
}