function asaf_example_api_needed_files_validate in Asaf (ajax submit for any form) 7
Same name and namespace in other branches
- 8 modules/asaf_example/asaf_example.api.needed_files.handlers.inc \asaf_example_api_needed_files_validate()
1 string reference to 'asaf_example_api_needed_files_validate'
- asaf_example_api_needed_files in modules/
asaf_example/ asaf_example.api.needed_files.inc
File
- modules/
asaf_example/ asaf_example.api.needed_files.handlers.inc, line 3
Code
function asaf_example_api_needed_files_validate($form, &$form_state) {
if (!valid_email_address($form_state['values']['email'])) {
form_set_error('email', t('Email is not valid'));
}
}