You are here

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

Same name and namespace in other branches
  1. 6.3 handlers/views_handler_argument_many_to_one.inc \views_handler_argument_many_to_one::init()
  2. 6.2 handlers/views_handler_argument_many_to_one.inc \views_handler_argument_many_to_one::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

File

handlers/views_handler_argument_many_to_one.inc, line 29
Definition of views_handler_argument_many_to_one.

Class

views_handler_argument_many_to_one
Argument handler for fields that have many-to-one table relationships.

Code

public function init(&$view, &$options) {
  parent::init($view, $options);
  $this->helper = new views_many_to_one_helper($this);

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