You are here

function views_handler_field_amazon_image::init in Amazon Product Advertisement API 7

Same name and namespace in other branches
  1. 6 includes/views_handler_field_amazon_image.inc \views_handler_field_amazon_image::init()
  2. 7.2 includes/views_handler_field_amazon_image.inc \views_handler_field_amazon_image::init()

Override init function to provide generic option to link to node.

Overrides views_handler_field::init

File

includes/views_handler_field_amazon_image.inc, line 23
Provide views handler so that Amazon Image can be displayed in the various ways that are available.

Class

views_handler_field_amazon_image
@file Provide views handler so that Amazon Image can be displayed in the various ways that are available.

Code

function init(&$view, &$data) {
  parent::init($view, $data);
  $this->additional_fields['height'] = 'height';
  $this->additional_fields['width'] = 'width';
  $this->additional_fields['detailpageurl'] = array(
    'table' => 'amazon_item',
    'field' => 'detailpageurl',
    'value' => 'amazon_item_detailpageurl',
  );
  $this->additional_fields['asin'] = 'asin';
  $this->additional_fields['url'] = 'url';
}