function google_geocode_settings in Location 6.3
Same name and namespace in other branches
- 5.3 geocoding/google.inc \google_geocode_settings()
- 5 geocoding/google.inc \google_geocode_settings()
- 7.5 geocoding/google.inc \google_geocode_settings()
- 7.3 geocoding/google.inc \google_geocode_settings()
- 7.4 geocoding/google.inc \google_geocode_settings()
General settings for this geocoder.
File
- geocoding/
google.inc, line 67 - Google geocoder.
Code
function google_geocode_settings() {
$form = array();
$country = arg(4);
if ($country) {
$form['location_geocode_' . $country . '_google_accuracy_code'] = array(
'#type' => 'select',
'#title' => t('Google Maps Geocoding Accuracy for %country', array(
'%country' => $country,
)),
'#default_value' => variable_get('location_geocode_' . $country . '_google_accuracy_code', variable_get('location_geocode_google_minimum_accuracy', '3')),
'#options' => location_google_geocode_accuracy_codes(),
'#description' => t('The minimum required accuracy for the geolocation data to be saved.'),
);
}
return $form;
}