1 views_handler_argument_field_list_string.inc views_handler_argument_field_list_string::init(&$view, &$options)

init the handler with necessary data.

Parameters

$view: The $view object this handler is attached to.

$options: The item from the database; the actual contents of this will vary based upon the type of handler.

Overrides views_handler_argument_string::init

File

core/modules/field/views/views_handler_argument_field_list_string.inc, line 22
Definition of views_handler_argument_field_list_text.

Class

views_handler_argument_field_list_string
Argument handler for list field to show the human readable name in the summary.

Code

function init(&$view, &$options) {
  parent::init($view, $options);
  $field = field_info_field($this->definition['field_name']);
  $this->allowed_values = list_allowed_values($field);
}