You are here

function matrix_handler_filter::admin_summary in Matrix field 7.2

Same name and namespace in other branches
  1. 8.2 views/matrix_handler_filter.inc \matrix_handler_filter::admin_summary()

Display the filter on the administrative summary.

Overrides views_handler_filter_string::admin_summary

File

views/matrix_handler_filter.inc, line 162

Class

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

Code

function admin_summary() {
  if (!empty($this->options['exposed'])) {
    return t('exposed');
  }
  $options = $this
    ->operator_options('short');
  $op = check_plain($options[$this->operator]);
  $rows = $this
    ->row_list();
  $cols = $this
    ->col_list();
  if (isset($this->value)) {
    list($row, $col, $value) = explode('_____', $this->value);
    return t("Cell at row '%row', column '%col' %op %value", array(
      '%row' => $rows[$row],
      '%col' => $cols[$col],
      '%op' => $op,
      '%value' => $value,
    ));
  }
  return $output;
}