function views_handler_field_node_revision::init
Same name in other branches
- 6.x-3.x modules/node/views_handler_field_node_revision.inc \views_handler_field_node_revision::init()
Overrides views_handler_field_node::init
File
-
modules/
node/ views_handler_field_node_revision.inc, line 18
Class
- views_handler_field_node_revision
- Contains the basic 'node_revision' field handler.
Code
public function init(&$view, &$options) {
parent::init($view, $options);
if (!empty($this->options['link_to_node_revision'])) {
$this->additional_fields['vid'] = 'vid';
$this->additional_fields['nid'] = 'nid';
if (module_exists('translation')) {
$this->additional_fields['language'] = array(
'table' => 'node',
'field' => 'language',
);
}
}
}