function geoip_ctools_plugin_region_ctools_access_settings in GeoIP API 7.2
Same name in this branch
- 7.2 plugins/access/region.inc \geoip_ctools_plugin_region_ctools_access_settings()
- 7.2 plugins/access/continent.inc \geoip_ctools_plugin_region_ctools_access_settings()
- 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/ region.inc, line 21
Code
function geoip_ctools_plugin_region_ctools_access_settings($form, &$form_state, $conf) {
// Ensure sane defaults.
$conf += array(
'regions' => '',
);
$form['settings']['regions'] = array(
'#type' => 'textarea',
'#multiple' => TRUE,
'#title' => t('Region'),
'#default_value' => $conf['regions'],
'#options' => geoip_regions_list(),
'#description' => t('The ip has to belong to one of the regions defined here. Enter one region per line.'),
);
return $form;
}