You are here

public function biblio_handler_field_biblio_type::init in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 views/biblio_handler_field_biblio_type.inc \biblio_handler_field_biblio_type::init()
  2. 6 views/biblio_handler_field_biblio_type.inc \biblio_handler_field_biblio_type::init()
  3. 7.2 views/biblio_handler_field_biblio_type.inc \biblio_handler_field_biblio_type::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_field::init

File

views/biblio_handler_field_biblio_type.inc, line 11

Class

biblio_handler_field_biblio_type

Code

public function init(&$view, $options) {
  parent::init($view, $options);
  if ($view->base_table == 'node_revision') {
    $this->additional_fields['vid'] = array(
      'table' => 'node_revision',
      'field' => 'vid',
    );
  }
  else {
    $this->additional_fields['vid'] = array(
      'table' => 'node',
      'field' => 'vid',
    );
  }
}