Disabling Gmap shortcode

BPSColruyt's picture
BPSColruyt
Tue, 11/08/2016 - 03:37
#1
Disabling Gmap shortcode

Hi,

Is there a possibility to disable the gmap shortcode, generated through your awecontent.module ?

Image title

We are receiving warnings about it :

Warning: file_get_contents(https://maps.googleapis.com/maps/api/js?v=3.exp): failed to open stream: operation failed in drupal_build_js_cache() (regel 5076 van /var/opt/was/data/youngleadpr/public/includes/common.inc).

I tried to disable it via awecontent permissions but the unchecked administrator permission is not saved somehow.

Image title

Also, the since 22/8 mandatory API key is nowhere configurable. Second reason we would like to disable this feature for now.

Thanks upfront for your advice.

TIP: it would be nice to have the shortcode configurable through a dedicated text format (admin/config/content/formats) where they can be selected for a  specific installation.

Regards,

phuonght's picture
phuonght
Tue, 11/08/2016 - 04:34

Hi,

Because gmap shortcode is in core of module Awecontent so we can not disable. 

BPSColruyt's picture
BPSColruyt
Tue, 11/08/2016 - 08:34

Hi,

Please find dropbox attached patch file on awecontent module : https://www.dropbox.com/s/x7bob582x5iqw39/awecontent-gmaps-config-1-D7.p...

It will enable and apply Google Maps API key on respective shortcodes.

Image title

We are using it also in our distribution and will prevent Google Maps penalties.

We give some to get some...

Best regards,

phuonght's picture
phuonght
Tue, 11/08/2016 - 21:35

We will check it.

Thank you so much.

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.