You are here

function views_handler_field_amazon_participant::options_form in Amazon Product Advertisement API 7

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

Provide "link to term" option.

Overrides views_handler_field_prerender_list::options_form

File

includes/views_handler_field_amazon_participant.inc, line 18

Class

views_handler_field_amazon_participant

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['participant_type'] = array(
    '#type' => 'select',
    '#title' => t('Participant restriction'),
    '#options' => array(
      '**ALL**' => t('Show all participants'),
      'author' => t('Author'),
      'artist' => t('Artist'),
      'actor' => t('Actor'),
      'director' => t('Director'),
      'creator' => t('Creator'),
    ),
    '#default_value' => $this->options['participant_type'],
  );
}