You are here

public function views_handler_argument_field_list_string::init in Views (for Drupal 7) 7.3

Init the handler with necessary data.

Parameters

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

array $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

modules/field/views_handler_argument_field_list_string.inc, line 26
Definition of views_handler_argument_field_list_string.

Class

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

Code

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