function views_handler_argument_field_list::summary_name
Overrides views_handler_argument::summary_name
File
-
modules/
field/ views_handler_argument_field_list.inc, line 59
Class
- views_handler_argument_field_list
- Argument handler for list field to show the human readable name in the summary.
Code
public function summary_name($data) {
$value = $data->{$this->name_alias};
// If the list element has a human readable name then show it.
if (isset($this->allowed_values[$value]) && !empty($this->options['summary']['human'])) {
return field_filter_xss($this->allowed_values[$value]);
}
else {
return check_plain($value);
}
}