call from form alter - undefined function error I try to use code for redirecting after submitting a form, but I am getting the below error: 


  undefined function my_search_form_submit_funtion in form.inc.


Why do I get this error? Thank you. 
The module name is utility.

function utility_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  if ($form_id == 'search_block_form') {
    $form['#submit'][] = 'my_search_form_submit_funtion';
  }
}
function my_search_form_submit_function(&amp;$form, &amp;$form_state) {
  $search_str = $form_state['values']['search_block_form'];
  $form_state['rebuild'] = TRUE;
  drupal_goto('search', array('query' =&gt; array('search_api_multi_fulltext' =&gt; $search_str)));
}
You have a typo error in your code.

Change

$form['#submit'][] = 'my_search_form_submit_funtion';


To

$form['#submit'][] = 'my_search_form_submit_function';