function asaf_example_gui_buttons_validate in Asaf (ajax submit for any form) 8
Same name and namespace in other branches
- 7 modules/asaf_example/asaf_example.gui.buttons.inc \asaf_example_gui_buttons_validate()
File
- modules/
asaf_example/ asaf_example.gui.buttons.inc, line 45
Code
function asaf_example_gui_buttons_validate($form, &$form_state) {
if (!is_numeric(trim($form_state['values']['number']))) {
form_set_error('number', t('You should specify a correct number'));
}
}