You are here

function geoip_ctools_plugin_region_ctools_access_settings in GeoIP API 7.2

Same name in this branch
  1. 7.2 plugins/access/region.inc \geoip_ctools_plugin_region_ctools_access_settings()
  2. 7.2 plugins/access/continent.inc \geoip_ctools_plugin_region_ctools_access_settings()
  3. 7.2 plugins/access/country.inc \geoip_ctools_plugin_region_ctools_access_settings()

Settings form for the 'user_agent' access plugin.

3 string references to 'geoip_ctools_plugin_region_ctools_access_settings'
continent.inc in plugins/access/continent.inc
country.inc in plugins/access/country.inc
region.inc in plugins/access/region.inc

File

plugins/access/continent.inc, line 21

Code

function geoip_ctools_plugin_region_ctools_access_settings($form, &$form_state, $conf) {

  // Ensure sane defaults.
  $conf += array(
    'continents' => array(),
  );
  $form['settings']['continents'] = array(
    '#type' => 'select',
    '#multiple' => TRUE,
    '#title' => t('continent'),
    '#default_value' => $conf['continents'],
    '#options' => geoip_continents_list(),
    '#description' => t('The ip has to belong to one of the selected continents.'),
  );
  return $form;
}