/**
* 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!
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!).
It's quiet in here! Why not leave a response?
Leave a Response