function views_handler_filter_in_operator::accept_exposed_input in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 6.2 handlers/views_handler_filter_in_operator.inc \views_handler_filter_in_operator::accept_exposed_input()
- 7.3 handlers/views_handler_filter_in_operator.inc \views_handler_filter_in_operator::accept_exposed_input()
Check to see if input from the exposed filters should change the behavior of this filter.
Overrides views_handler_filter::accept_exposed_input
2 calls to views_handler_filter_in_operator::accept_exposed_input()
- views_handler_filter_term_node_tid::accept_exposed_input in modules/
taxonomy/ views_handler_filter_term_node_tid.inc - Check to see if input from the exposed filters should change the behavior of this filter.
- views_handler_filter_user_name::accept_exposed_input in modules/
user/ views_handler_filter_user_name.inc - Check to see if input from the exposed filters should change the behavior of this filter.
2 methods override views_handler_filter_in_operator::accept_exposed_input()
- views_handler_filter_term_node_tid::accept_exposed_input in modules/
taxonomy/ views_handler_filter_term_node_tid.inc - Check to see if input from the exposed filters should change the behavior of this filter.
- views_handler_filter_user_name::accept_exposed_input in modules/
user/ views_handler_filter_user_name.inc - Check to see if input from the exposed filters should change the behavior of this filter.
File
- handlers/
views_handler_filter_in_operator.inc, line 264
Class
- views_handler_filter_in_operator
- Simple filter to handle matching of multiple options selectable via checkboxes
Code
function accept_exposed_input($input) {
// A very special override because the All state for this type of
// filter could have a default:
if (empty($this->options['exposed'])) {
return TRUE;
}
// If this is single and optional, this says that yes this filter will
// participate, but using the default settings, *if* 'limit is true.
if (!empty($this->options['expose']['single']) && !empty($this->options['expose']['optional']) && !empty($this->options['expose']['limit'])) {
$identifier = $this->options['expose']['identifier'];
if ($input[$identifier] == 'All') {
return TRUE;
}
}
return parent::accept_exposed_input($input);
}