public function views_handler_filter_selective::set_default_options in Views Selective Filters 7
Set default options.
For backward compatibility, it sends the options array; this is a feature that will likely disappear at some point.
Overrides views_object::set_default_options
File
- ./
views_handler_filter_selective.inc, line 30 - Views Filter Selective Handler Overrides.
Class
- views_handler_filter_selective
- Views filter handler for selective values.
Code
public function set_default_options() {
parent::set_default_options();
// This filter should always be exposed!
$this->options['exposed'] = TRUE;
// Do not allow to reduce options, makes no sense.
$this->options['expose']['reduce'] = FALSE;
}