Leave a comment
CSS overrides are nice but sometimes you need to alter your submit button to show up the same way in all browsers (yes, you IE!).
/**
* Alter search form to use image as background.
*/
function mytheme_search_theme_form($form) {
$form['submit']['#type'] = 'image_button';
$form['submit']['#src'] = drupal_get_path('theme', 'mytheme') .'/images/search_btn.gif';
$output .= drupal_render($form);
return $output;
}
Piece of cake!