You are here

public function views_handler_filter_string::admin_summary in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 handlers/views_handler_filter_string.inc \views_handler_filter_string::admin_summary()
  2. 6.2 handlers/views_handler_filter_string.inc \views_handler_filter_string::admin_summary()

Display the filter on the administrative summary.

Overrides views_handler_filter::admin_summary

File

handlers/views_handler_filter_string.inc, line 165
Definition of views_handler_filter_string.

Class

views_handler_filter_string
Basic textfield filter to handle string filtering commands including equality, like, not like, etc.

Code

public 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 = '';
  if (!empty($options[$this->operator])) {
    $output = check_plain($options[$this->operator]);
  }
  if (in_array($this->operator, $this
    ->operator_values(1))) {
    $output .= ' ' . check_plain($this->value);
  }
  return $output;
}