function search_api_saved_searches_save_form_validate in Search API Saved Searches 7
Form validation handler for search_api_saved_searches_save_form().
See also
search_api_saved_searches_save_form()
search_api_saved_searches_save_form_submit()
File
- ./
search_api_saved_searches.module, line 953 - Offers the ability to save searches and be notified of new results.
Code
function search_api_saved_searches_save_form_validate(array $form, array &$form_state) {
if ($msg = user_validate_mail($form_state['values']['mail'])) {
form_error($form['mail'], $msg);
}
}