I am using Foliage theme which has search box in header in the right corner. I want use only search box from module Google CSE. Is it OK edit file page.tpl.php in theme and change <?php print $search_box ?> to <?php print drupal_get_form('google_cse_searchbox_form') ?>? Or is there some easiest way without file hacking?

Thanks a lot.
Bodaker

Comments

mfb’s picture

Category: task » support

That's one way to do it in the theme. Another way to do it would be using hook_form_alter() in a custom module to modify the search_box form.

This (adding a setting to override the built-in core search forms) could be considered a feature request for the Google CSE search module (which integrates Google CSE and core search). I already have this feature in the yboss module. But it's not a priority for me so, I am just setting this to "support request" for now rather than "feature request".

Bodaker’s picture

Status: Active » Closed (fixed)

Making change in theme is much easier then making new module. I will use drupal_get_form function.
This is my first issue and setting category to “task” was mistake (sorry about that).

Thanks for quick answer.

lias’s picture

Thanks, themeing also worked for drupal 5.x