You are here

function views_handler_argument_countries_country::options_form in Countries 7.2

Same name and namespace in other branches
  1. 8 views/views_handler_argument_countries_country.inc \views_handler_argument_countries_country::options_form()

Build the options form.

Overrides views_handler_argument_string::options_form

File

views/views_handler_argument_countries_country.inc, line 32
Argument handler for countries properties.

Class

views_handler_argument_countries_country
@file Argument handler for countries properties.

Code

function options_form(&$form, &$form_state) {
  $form['title_property'] = array(
    '#type' => 'select',
    '#title' => t('Title property'),
    '#options' => countries_core_properties(),
    '#required' => TRUE,
    '#default_value' => $this->options['title_property'],
    '#description' => t('Defines what property that is used when overriding the title or breadcrumb.'),
    '#fieldset' => 'argument_present',
  );
  unset($form['title_property']['#options']['enabled']);
  unset($form['title_property']['#options']['continent']);
  parent::options_form($form, $form_state);
}