Download & Extend

implement google CSE search block with search-theme-form.tpl.php

Project:Google Custom Search Engine
Version:6.x-1.2
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi, I was wondering how to implement the google CSE search form on my site with search-theme-form.tpl.php

I currently have the template file that displays the normal drupal search form, but I would like to replace it with the google CSE search.

I tried the simplest way of

$search_form = drupal_get_form('google_cse_searchbox_form');
print $search_form;

and the form displays correctly but when I hit submit nothing happens and the page simply reloads.

I was wondering how to retrieve individual form parts and direct the form processing.

Much appreciated.