function views_handler_field_amazon_image::options_form in Amazon Product Advertisement API 7.2
Same name and namespace in other branches
- 6 includes/views_handler_field_amazon_image.inc \views_handler_field_amazon_image::options_form()
- 7 includes/views_handler_field_amazon_image.inc \views_handler_field_amazon_image::options_form()
Provide link to node option
Overrides views_handler_field::options_form
File
- includes/
views_handler_field_amazon_image.inc, line 52 - 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 options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['image_size'] = array(
'#title' => t('Image size'),
'#type' => 'select',
'#options' => array(
'smallimage' => t('Small'),
'mediumimage' => t("Medium"),
'largeimage' => t("Large"),
),
'#default_value' => $this->options['image_size'],
);
$form['link_format'] = array(
'#title' => t('Link behavior'),
'#type' => 'radios',
'#options' => array(
'plain' => t('No link'),
'amazon' => t("A link to the product's Amazon page"),
),
'#default_value' => $this->options['link_format'],
);
if (module_exists('amazon_store')) {
$form['link_format']['#options']['amazon_store'] = t("A link to the product's Amazon Store page (Amazon Store Module)");
}
$form['presentation_format'] = array(
'#title' => t('Presentation format'),
'#type' => 'select',
'#options' => array(
'markup' => t('HTML img markup'),
'plain_url' => t('Plain URL to image'),
),
'#default_value' => $this->options['presentation_format'],
);
}