function botcha_point_admin_form_validate in BOTCHA Spam Prevention 6
Same name and namespace in other branches
- 7 botcha.pages.inc \botcha_point_admin_form_validate()
validation function for botcha_point_admin_form
File
- ./
botcha.pages.inc, line 356 - Implementation of botcha administration forms.
Code
function botcha_point_admin_form_validate($form, $form_state) {
if (!preg_match('/^[a-z0-9_]+$/', $form_state['values']['botcha_point_form_id'])) {
form_set_error('botcha_point_form_id', t('Illegal form_id'));
}
}