You are here

function views_handler_field_amazon_title::options_form in Amazon Product Advertisement API 7

Same name and namespace in other branches
  1. 6 includes/views_handler_field_amazon_title.inc \views_handler_field_amazon_title::options_form()
  2. 6 includes/views_handler_filter_amazon_node_module.inc \views_handler_field_amazon_title::options_form()
  3. 7.2 includes/views_handler_field_amazon_title.inc \views_handler_field_amazon_title::options_form()

Provide link options.

Overrides views_handler_field::options_form

File

includes/views_handler_field_amazon_title.inc, line 23

Class

views_handler_field_amazon_title

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $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)");
  }
}