You are here

public function ip_geoloc_plugin_argument_default_ip_geoloc::options_form in IP Geolocation Views & Maps 7

Provide the default form for setting options.

Overrides views_plugin_argument_default::options_form

File

views/ip_geoloc_plugin_argument_default_ip_geoloc.inc, line 19
views/ip_geoloc_plugin_argument_default_ip_geoloc.inc

Class

ip_geoloc_plugin_argument_default_ip_geoloc
Default argument plugin to inject attributes from the visitor's location.

Code

public function options_form(&$form, &$form_state) {
  $form['type'] = array(
    '#type' => 'select',
    '#title' => t('Location attribute to use'),
    '#options' => array(
      'postal_code' => t('Postal code'),
      'city_state' => t('City and State/Province'),
      'country' => t('Country'),
      'lat_long' => t('Latitude, longitude'),
      'formatted_address' => t('Formatted address'),
    ),
    '#default_value' => $this->options['type'],
  );
}