You are here

function content_handler_argument_many_to_one::summary_name in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 includes/views/handlers/content_handler_argument_many_to_one.inc \content_handler_argument_many_to_one::summary_name()

File

includes/views/handlers/content_handler_argument_many_to_one.inc, line 17
Handler for 'content_handler_argument_many_to_one' style.

Class

content_handler_argument_many_to_one
@file Handler for 'content_handler_argument_many_to_one' style.

Code

function summary_name($data) {
  $options = $this
    ->allowed_values();
  $value = $data->{$this->name_alias};
  if (isset($options[$value])) {
    $value = $options[$value];
  }
  else {
    $value = parent::summary_name($data);
  }
  return $value;
}