Closed (duplicate)
Project:
Google Programmable Search Engine
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2012 at 18:19 UTC
Updated:
27 Jul 2015 at 15:03 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
attheshow commentedClosing issue.
Comment #2
attheshow commentedForgot to attach patch.
Comment #3
sirviejo commentedI understand that this could be consider that is working as designed. But the fact that does not allow any way for modules to disable this functionality breaks the standard Drupal extensibility.
Let me put my two cents about this:
Templates using html 5, can make use of the placeholder attrubute in wich case this script seems useless. In other hand the script should be using de Drupal Namespace and not in the global scope.
What if... you remove the script from the info file, add a new variable to the settings page to toggle this funcionality, and register this script in the hook_init only if the variable is set to true?.
Comment #4
theshanergy commentedThis is an old thread and I'm surprised nothing has come of it. The javascript included in this module isn't pretty imo, and should be removed. It adds a colored border around the search input box, and messes with css background positioning. It doesn't seem to have any functional use, aside from presentation level css changes which should probably happen in the theme instead.
In Drupal 7 to disable this javascript, you may implement the following in your theme's template.php:
Comment #5
osopolarSee also: #2498613: Show watermark optionally and rewrite js code for watermark.
Comment #6
alexmoreno commentedthis patch does not seem ready to merge (as it simply comments the google.js). So closing it, please refer to https://www.drupal.org/node/2498613