call from form alter - undefined function error
You have a typo error in your code.

Change

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


To

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