public function other_view_filter_handler_filter_view::accept_exposed_input in OtherView Filter 7
Check to see if input from the exposed filters should change the behavior.
Overrides views_handler_filter_in_operator::accept_exposed_input
File
- ./
other_view_filter_handler_filter_view.inc, line 133 - Definition of views_handler_filter_entity_other_view filter.
Class
- other_view_filter_handler_filter_view
- Filter class which allows to filter by certain bundles of an entity.
Code
public function accept_exposed_input($input) {
$value = $this->value;
$return = parent::accept_exposed_input($input);
// If the parent method produced a nested array, remove the nesting.
if ($this->value !== $value && is_array($this->value) && count($this->value) === 1) {
$this->value = reset($this->value);
}
return $return;
}