function biblio_handler_field_biblio_type::init in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 views/biblio_handler_field_biblio_type.inc \biblio_handler_field_biblio_type::init()
- 6 views/biblio_handler_field_biblio_type.inc \biblio_handler_field_biblio_type::init()
- 7 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 4
Class
Code
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',
);
}
}