By jweberg on
I am receiving the above fatal error in this code. Can someone please look it over and see if they can find it?
/**
* Implementation of hook_form_alter()
**/
function custommodule_form_alter(&$form, &$form_state, $form_id) {
switch ($form_id) {
case 'search_theme_form':
$form = array(
'title' => variable_get('custommodule_label', ''),
'default' => variable_get('custommodule_default', '')
);
return $form;
}
}
Comments
I just thought I should point
I just thought I should point out that I did read through all of the similar posts on the forums and such. I didn't find anything that helped.
Resolved
I figured it out. OOPS.
So, out of curiosity, what
So, out of curiosity, what was it?
For anyone still having this
For anyone still having this problem it was a simple typo. I can't remember exactly where it was. The newest version of my module Custom Search Box should be error free. If you come across an error please start a new issue in the queue. Thanks.