You are here

function views_handler_field_amazon_participant::options_form in Amazon Product Advertisement API 6

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

Provide "link to term" option.

File

includes/views_handler_field_amazon_participant.inc, line 20

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 particpants'),
      'author' => 'Author',
      'artist' => 'Artist',
      'actor' => 'Actor',
      'director' => 'Director',
      'creator' => 'Creator',
    ),
    '#default_value' => $this->options['participant_type'],
  );
}