I am trying to implement the code found here: http://aronbarbosa.com/content/customizing-your-drupal-search-block-2 to theme the search box. I've tried contacting the original author of this code but am not getting any response.
I like the result but since implementing I am getting this error:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in _form_set_class() (line 3969 of /home/websiteurl/includes/form.inc).
Here is a copy of the code found on that link:
/**
* Override or insert PHPTemplate variables into the search_block_form template.
*
* @param $vars
* A sequential array of variables to pass to the theme template.
* @param $hook
* The name of the theme function being called (not used in this case.)
*/
// I used garland so you have to change garland to the name of your current theme
function garland_preprocess_search_block_form(&$vars, $hook) {
// Removes the "Search this site" label from the form, leave blank if you don't want a label
$vars['form']['search_block_form']['#title'] = t('');
// default value for the textbox
$vars['form']['search_block_form']['#value'] = t('Search...');
//wrapper for the search box and button
$vars['form']['search_block_form']['#prefix'] = '