Closed (fixed)
Project:
Google Programmable Search Engine
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2011 at 23:33 UTC
Updated:
4 Dec 2015 at 14:24 UTC
Jump to comment: Most recent
Comments
Comment #1
mfbTo alter forms in drupal you don't need to modify the code, you can just write a small custom module which implements a form_alter hook.
If there is only one site to search, it sounds like you should setup a CSE to just search this site (in the control panel on google.com) and not use the SiteSearch functionality. if you leave the SiteSearch domain blank in the module settings page, then there will be no site selection field in the search form.
Comment #2
udvranto commentedGreat! That's exactly what I was looking for! Thanks!
Comment #3
malcomio commented