function views_handler_relationship::init

cis7 views_handler_relationship.inc views_handler_relationship::init(&$view, &$options)
cle7 views_handler_relationship.inc views_handler_relationship::init(&$view, &$options)
elmsmedia7 views_handler_relationship.inc views_handler_relationship::init(&$view, &$options)
icor7 views_handler_relationship.inc views_handler_relationship::init(&$view, &$options)
meedjum_blog7 views_handler_relationship.inc views_handler_relationship::init(&$view, &$options)
mooc7 views_handler_relationship.inc views_handler_relationship::init(&$view, &$options)

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

Overrides views_handler::init

2 methods override views_handler_relationship::init()
views_handler_relationship_entity_reverse::init in sites/all/modules/ulmus/views/modules/field/views_handler_relationship_entity_reverse.inc
Init handler to let relationships live on tables other than the table they operate on.
views_handler_relationship_node_term_data::init in sites/all/modules/ulmus/views/modules/taxonomy/views_handler_relationship_node_term_data.inc
Init handler to let relationships live on tables other than the table they operate on.

File

sites/all/modules/ulmus/views/handlers/views_handler_relationship.inc, line 43
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'])) {
    // Set both real_field and field so custom handler
    // can rely on the old field value.
    $this->real_field = $this->field = $this->definition['relationship field'];
  }
}