My problem is fairly simple. I have written a theme_form() to override the default but I want it to kick in only in the search block. How can I do this with Drupal 7? Thanks
Put search-block-form.tpl.php into your theme directory, and modify it as you wish.
Another way is using