1. How can I remove the 'Search the Web' option. I guess I need to modify the code.

2. I would like to remove the option for site selection altogether if there is only one site to search. Is there a way to do it?

Comments

mfb’s picture

To 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.

udvranto’s picture

Great! That's exactly what I was looking for! Thanks!

malcomio’s picture

Issue summary: View changes
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.