You are here

function addressfield_views_handler_field_country::options_form in Address Field 7

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

Overrides views_handler_field::options_form

File

views/addressfield_views_handler_field_country.inc, line 15

Class

addressfield_views_handler_field_country
Defines a field handler that can display the country name instead of the two character country code for an address field country value.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['display_name'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display the localized country name instead of the two character country code'),
    '#default_value' => $this->options['display_name'],
  );
}