You are here

function smart_ip_views_bridge_handler_field_country::options_form in Smart IP 7.2

Same name and namespace in other branches
  1. 6.2 modules/smart_ip_views_bridge/views/smart_ip_views_bridge_handler_field_country.inc \smart_ip_views_bridge_handler_field_country::options_form()
  2. 6 modules/smart_ip_views_bridge/views/smart_ip_views_bridge_handler_field_country.inc \smart_ip_views_bridge_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/smart_ip_views_bridge/views/smart_ip_views_bridge_handler_field_country.inc, line 25
Contains the 'smart_ip_views_bridge_handler_field_country' field handler.

Class

smart_ip_views_bridge_handler_field_country
Field handler to display visitor's country.

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('ISO 3166 2-character country code'),
    ),
    '#default_value' => $this->options['style'],
  );
}