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

jweberg’s picture

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.

jweberg’s picture

I figured it out. OOPS.

tobby’s picture

So, out of curiosity, what was it?

jweberg’s picture

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.