--- /Users/James/Desktop/gmap/gmap_settings_ui.inc
+++ gmap_settings_ui.inc
@@ -19,7 +19,7 @@
   $form['initialization']['googlemap_api_key'] = array(
     '#type' => 'textfield', 
     '#title' => t('Google map API key'),
-    '#default_value' => variable_get('googlemap_api_key', ''), 
+    '#default_value' => keys_api_get_key('Gmap',$_SERVER['HTTP_HOST']), 
     '#size' => 50, 
     '#maxlength' => 255,
     '#description' => t('Your personal Googlemaps API key.  You must get this for each separate website at <a href="http://www.google.com/apis/maps/">Google Map API website</a>.'),
@@ -341,5 +341,6 @@
     '#maxlength' => 500,
     '#description' => t('The gmap macro for the map to be used in the location.module for setting latitude and longitude.'),
   );
+  $form['#submit']['_gmap_admin_settings_submit'] = array();
   return system_settings_form($form);
-}
+}
\ No newline at end of file
