You are here

function smart_ip_views_bridge_handler_field_region::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_region.inc \smart_ip_views_bridge_handler_field_region::options_form()
  2. 6 modules/smart_ip_views_bridge/views/smart_ip_views_bridge_handler_field_region.inc \smart_ip_views_bridge_handler_field_region::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_region.inc, line 25
Contains the 'smart_ip_views_bridge_handler_field_region' field handler.

Class

smart_ip_views_bridge_handler_field_region
Field handler to display visitor's region.

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('Region name'),
      'code' => t('Region code (FIPS)'),
    ),
    '#default_value' => $this->options['style'],
  );
}