function SearchApiStringFilter::admin_summary in Search API Extended String Filter 7
Display the filter on the administrative summary
Overrides SearchApiViewsHandlerFilter::admin_summary
File
- includes/
handler_filter_string.inc, line 139
Class
Code
function admin_summary() {
if (!empty($this->options['exposed'])) {
return t('exposed');
}
$options = $this
->operator_options('short');
$output = '';
// create indexed array from associative array 'value'
$value_key_array = array_keys($this->value);
if (!empty($options[$this->operator])) {
$output = check_plain($options[$this->operator]);
}
if (in_array($this->operator, $this
->operator_values(1))) {
// submit string value to check_plain, below.
$output .= ' ' . check_plain($value_key_array[0]);
}
return $output;
}