--- cck_map.theme 2008-05-16 17:19:13.000000000 +0000 +++ cck_map.theme 2008-05-16 17:19:18.000000000 +0000 @@ -2,7 +2,11 @@ // $Id: cck_map.theme,v 1.1 2007/11/13 01:09:04 beeradb Exp $ function theme_cck_map($node, $field, $items, $teaser, $page){ //note: these javascript files should probably remain in tact, edit at your own peril. - drupal_add_js("/maps.google.com/maps?file=api&v=2&key=".variable_get('cck_map_key', '')); + $key = variable_get('cck_map_key', ''); + if (module_exists('keys_api')) { + $key = keys_api_get_key('CCK Map', $_SERVER['HTTP_HOST']); + } + drupal_add_js("/maps.google.com/maps?file=api&v=2&key=".$key); drupal_add_js(drupal_get_path('module', 'cck_map') .'/cck_map.js');