You are here

function views_handler_field_node::construct in Views (for Drupal 7) 6.2

Constructor to provide additional field to add.

Overrides views_handler_field::construct

File

modules/node/views_handler_field_node.inc, line 16
Contains the basic 'node' field handler.

Class

views_handler_field_node
Field handler to provide simple renderer that allows linking to a node. Definition terms:

Code

function construct() {
  parent::construct();
  $this->additional_fields['nid'] = array(
    'table' => 'node',
    'field' => 'nid',
  );
  if (module_exists('translation')) {
    $this->additional_fields['language'] = array(
      'table' => 'node',
      'field' => 'language',
    );
  }
}