When using the GMap module with Domain Access, the message comes up saying my API key isn't valid when changing between sites.
I realise that I could just register for a different key for each site, but it seems that changing the key will affect all domains, not just the current one...

Anyone know a way around this?

Comments

agentrickard’s picture

Status: Active » Closed (duplicate)

If you use Domain Conf, you can write an implementation of hook_domainconf() to allow different keys per domain.

That feature was actually put in for GMap a long time ago -- http://drupal.org/node/202671. Note, however, that such implementations of contrib modules will never be released as part of the DA code. It would be fairly trivial to add the hook to the GMap module.

You can also create a domain_conf.inc file and put the function there. See the Domain Conf README file and the API.php documentation.