function location_geocode_au_google_settings in Location 5.3
File
- supported/
location.au.inc, line 320
Code
function location_geocode_au_google_settings() {
$form = array();
$form['location_geocode_au_google_apikey'] = array(
'#type' => 'textfield',
'#title' => t('Google Maps API Key'),
'#size' => 64,
'#maxlength' => 128,
'#default_value' => variable_get('location_geocode_au_google_apikey', ''),
'#description' => t('In order to use the Google Maps API geocoding web-service, you will need a Google Maps API Key. You can obtain one at the !sign_up_link for the !google_maps_api.', array(
'!sign_up_link' => '<a href="http://www.google.com/apis/maps/signup.html">sign-up page</a>',
'!google_maps_api' => '<a href="http://www.google.com/apis/maps/">Google Maps API</a>',
)),
);
$form['location_geocode_au_google_accuracy_code'] = array(
'#type' => 'select',
'#title' => t('Google Maps Geocoding Accuracy for Australia'),
'#default_value' => variable_get('location_geocode_au_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;
}