function better_exposed_filters_exposed_form_plugin::query in Better Exposed Filters 7.3
Query callback, intervenes if no filters are applied and input is required.
Overrides views_plugin_exposed_form::query
File
- ./
better_exposed_filters_exposed_form_plugin.inc, line 2106 - Provides an Better Exposed Filters exposed form plugin for View 3.x.
Class
- better_exposed_filters_exposed_form_plugin
- Better exposed filter form plugin class.
Code
function query() {
$bef_settings = $this
->_bef_get_settings();
if (!$this
->exposed_filter_applied() && !empty($bef_settings['general']['input_required'])) {
// 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();
}
}