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