function google_geocode_settings in Location 5
Same name and namespace in other branches
- 5.3 geocoding/google.inc \google_geocode_settings()
- 6.3 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()
File
- geocoding/
google.inc, line 109
Code
function google_geocode_settings() {
$form = array();
$form['location_geocode_google_apikey'] = array(
'#type' => 'textfield',
'#title' => t('Google Maps API Key'),
'#size' => 64,
'#maxlength' => 128,
'#default_value' => variable_get('location_geocode_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. PLEASE NOTE: You will <em>not</em> have to re-enter your API key for each country for which you have selected Google Maps for geocoding. This setting is global.', 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>',
)),
);
return $form;
}