I am trying to remove the standard search box that seems to go with the search results page. Days of searching and hours of reading have not helped yet.

The search block is already disabled in the blocks admin section. And I tried the solutions here : http://drupal.org/node/86987

So where does it come from? I am trying to scan the search.module, but it still a little bit over my head how to "hook" that stuff from the template.php

Any help GREATLY appreciated.

PS I use a dutch localised version of drupal, but I don't think that has anything to do with it.

Comments

bagusbean’s picture

just want to send this to the top again. How do you remove the search box from the search results page?

Paintbox’s picture

I ended up using the following in the template.php file, it's a bit ugly, but it worked for me :

function phptemplate_search_form($action = '', $keys = '', $type = NULL, $prompt = NULL) {
  $output = " ";
  return $output;
}

This will overwrite the search form so it will output nothing.

halloffame’s picture

It doesn't work on D6. What's the workaround of this in D6?

cesar.brod@gmail.com’s picture

Any ideas for D7?