You are here

function views_handler_relationship::init in Views (for Drupal 7) 6.2

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

Init handler to let relationships live on tables other than the table they operate on.

Overrides views_handler::init

File

handlers/views_handler_relationship.inc, line 40
Views' relationship handlers.

Class

views_handler_relationship
Simple relationship handler that allows a new version of the primary table to be linked in.

Code

function init(&$view, $options) {
  parent::init($view, $options);
  if (isset($this->definition['relationship table'])) {
    $this->table = $this->definition['relationship table'];
  }
  if (isset($this->definition['relationship field'])) {
    $this->field = $this->definition['relationship field'];
  }
}