You are here

function getlocations_fields_handler_field_country::options_form in Get Locations 7.2

Same name and namespace in other branches
  1. 7 modules/getlocations_fields/handlers/getlocations_fields_handler_field_country.inc \getlocations_fields_handler_field_country::options_form()

Default options form provides the label widget that all fields should have.

Overrides views_handler_field::options_form

File

modules/getlocations_fields/handlers/getlocations_fields_handler_field_country.inc, line 19
getlocations_fields_handler_field_country.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Class

getlocations_fields_handler_field_country
@file getlocations_fields_handler_field_country.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['style'] = array(
    '#title' => t('Display style'),
    '#type' => 'select',
    '#options' => array(
      'name' => t('Country name'),
      'code' => t('Country code'),
    ),
    '#default_value' => $this->options['style'],
  );
}