1 views_handler_filter_numeric.inc | views_handler_filter_numeric::admin_summary() |
Display the filter on the administrative summary
Overrides views_handler_filter::admin_summary
File
- core/
modules/ views/ handlers/ views_handler_filter_numeric.inc, line 276 - Definition of views_handler_filter_numeric.
Class
- views_handler_filter_numeric
- Simple filter to handle greater than/less than filters
Code
function admin_summary() {
if ($this->is_a_group()) {
return t('grouped');
}
if (!empty($this->options['exposed'])) {
return t('exposed');
}
$options = $this->operator_options('short');
$output = check_plain($options[$this->operator]);
if (in_array($this->operator, $this->operator_values(2))) {
$output .= ' ' . t('@min and @max', array('@min' => $this->value['min'], '@max' => $this->value['max']));
}
elseif (in_array($this->operator, $this->operator_values(1))) {
$output .= ' ' . check_plain($this->value['value']);
}
return $output;
}