You are here

function views_handler_argument_string::init in Views (for Drupal 7) 6.3

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

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

File

handlers/views_handler_argument_string.inc, line 10

Class

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

Code

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();
  }
}