public function views_handler_filter_boolean_operator::admin_summary in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 handlers/views_handler_filter_boolean_operator.inc \views_handler_filter_boolean_operator::admin_summary()
- 6.2 handlers/views_handler_filter_boolean_operator.inc \views_handler_filter_boolean_operator::admin_summary()
Display the filter on the administrative summary.
Overrides views_handler_filter::admin_summary
File
- handlers/
views_handler_filter_boolean_operator.inc, line 158 - Definition of views_handler_filter_boolean_operator.
Class
- views_handler_filter_boolean_operator
- Simple filter to handle matching of boolean values
Code
public function admin_summary() {
if ($this
->is_a_group()) {
return t('grouped');
}
if (!empty($this->options['exposed'])) {
return t('exposed');
}
if (empty($this->value_options)) {
$this
->get_value_options();
}
// Now that we have the valid options for this filter, just return the
// human-readable label based on the current value. The value_options
// array is keyed with either 0 or 1, so if the current value is not
// empty, use the label for 1, and if it's empty, use the label for 0.
return $this->value_options[!empty($this->value)];
}