How do I create a custom search block? I want to add in my D7 installation a search field inside a special part of the page, and I don´t want to use the default search block (as it will be harder to theme, this box I have already worked on it).

Naturally, if I just type:

&lt;form&gt;&lt;input type="text" placeholder="Search"&gt;&lt;/form&gt; 


it won´t work.

What else does this need to actually act like the default search form in the search block? I know there´s this Custom Search module, but I think that I shouldn´t install yet another module for this simple functionality.

Thanks!!
You could simply call drupal_get_form() on the search form_id, which I think is - either search_block_form or search_form

And use drupal_render() on the returned array.

  print drupal_render(drupal_get_form('search_block_form'));


Though I might be wrong about the drupal_render() part, yet it seems to me since the drupal_get_form() returns an array drupal_render should be used on it.

Also this page might be helpful too - http://data.agaric.com/print-form-such-search-form-anywhere-drupal

Hope that helps.