You are here

function geolocation_googlemaps_admin_settings in Geolocation Field 7

1 string reference to 'geolocation_googlemaps_admin_settings'
geolocation_googlemaps_menu in modules/geolocation_googlemaps/geolocation_googlemaps.module
Implements hook_menu().

File

modules/geolocation_googlemaps/geolocation_googlemaps.module, line 559
Google Maps widget and formatters for Geolocation.

Code

function geolocation_googlemaps_admin_settings() {
  $form['geolocation_googlemaps_api_key'] = array(
    '#title' => t('Your Google Simple API Access key'),
    '#type' => 'textfield',
    '#default_value' => variable_get('geolocation_googlemaps_api_key', ''),
    '#size' => 50,
    '#maxlength' => 255,
    '#description' => t('Using an API key is mandatory to view Google maps. You can find more information about API keys on <a href="https://developers.google.com/maps/documentation/javascript/tutorial#api_key">Google Maps JavaScript API v3</a>.'),
  );
  return system_settings_form($form);
}