You are here

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

Same name and namespace in other branches
  1. 6.3 handlers/views_handler_argument_string.inc \views_handler_argument_string::init()
  2. 6.2 handlers/views_handler_argument_string.inc \views_handler_argument_string::init()

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::init

1 call to views_handler_argument_string::init()
views_handler_argument_field_list_string::init in modules/field/views_handler_argument_field_list_string.inc
Init the handler with necessary data.
1 method overrides views_handler_argument_string::init()
views_handler_argument_field_list_string::init in modules/field/views_handler_argument_field_list_string.inc
Init the handler with necessary data.

File

handlers/views_handler_argument_string.inc, line 18
Definition of views_handler_argument_string.

Class

views_handler_argument_string
Argument handler to implement string arguments that may have length limits.

Code

public function init(&$view, &$options) {
  parent::init($view, $options);
  if (!empty($this->definition['many to one'])) {
    $this->helper = new views_many_to_one_helper($this);

    // Ensure defaults for these, during summaries and stuff.
    $this->operator = 'or';
    $this->value = array();
  }
}