You are here

function views_handler_field_countries_continent::options_form in Countries 7.2

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

Provide continent_code option.

Overrides views_handler_field::options_form

File

views/views_handler_field_countries_continent.inc, line 22
Views module filter handler class.

Class

views_handler_field_countries_continent
Provides a continent filter.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['continent_code'] = array(
    '#title' => t('Output machine name'),
    '#description' => t('Display field as the continent machine name.'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['continent_code']),
  );
}