function image_attach_views_handler_field_attached_images::construct in Image 6
Constructor to provide additional fields to add.
Add the nid field for our query later on.
Overrides image_handler_field_image_node_image::construct
File
- contrib/
image_attach/ image_attach_views_handler_field_attached_images.inc, line 19
Class
- image_attach_views_handler_field_attached_images
- Field handler to display the attached images on a node.
Code
function construct() {
parent::construct();
$this->additional_fields['image_attach_nid'] = array(
'table' => 'node',
'field' => 'nid',
);
}