You are here

function image_handler_field_image_node_image::construct in Image 6

Same name and namespace in other branches
  1. 7 views/image_handler_field_image_node_image.inc \image_handler_field_image_node_image::construct()

Constructor to provide additional fields to add.

Adds the fields that image_load() will need.

1 call to image_handler_field_image_node_image::construct()
image_attach_views_handler_field_attached_images::construct in contrib/image_attach/image_attach_views_handler_field_attached_images.inc
Constructor to provide additional fields to add.
1 method overrides image_handler_field_image_node_image::construct()
image_attach_views_handler_field_attached_images::construct in contrib/image_attach/image_attach_views_handler_field_attached_images.inc
Constructor to provide additional fields to add.

File

views/image_handler_field_image_node_image.inc, line 25
Views handler for image field.

Class

image_handler_field_image_node_image
Field handler to provide an image tag.

Code

function construct() {
  parent::construct();
  $this->additional_fields['image_node_nid'] = array(
    'table' => 'node',
    'field' => 'nid',
  );

  // Node title for image rendering.
  $this->additional_fields['image_node_title'] = array(
    'table' => 'node',
    'field' => 'title',
  );

  // Node type to verify it is an image node.
  $this->additional_fields['image_node_type'] = array(
    'table' => 'node',
    'field' => 'type',
  );
}