--- gmap.module.OLD	2009-04-18 04:31:59.000000000 +1000
+++ gmap.module	2009-09-29 12:57:47.000000000 +1000
@@ -1207,3 +1207,27 @@ function gmap_views_plugins() {
     ),
   );
 }
+
+/**
+ * Implementation of hook_domainconf().
+ *
+ * Adds support for per-domain Google Map keys when using Domain Access
+ * See http://therickards.com/api/function/hook_domainconf/Domain
+ */
+function gmap_domainconf() {
+  $form['gmap'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Google Maps'),
+    '#collapsible' => TRUE,
+    '#collapsed' => FALSE,
+  );
+  $form['gmap']['googlemap_api_key'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Google Maps API Key'),
+    '#default_value' => variable_get('googlemap_api_key', ''),
+    '#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>.'),
+  );
+  return $form;
+}
