| 5 form.inc | date_validate( |
| 6 form.inc | date_validate($element) |
| 7 form.inc | date_validate($element) |
| 8 form.inc | date_validate($element) |
Validates the FAPI date type to stop dates like 30/Feb/2006
Related topics
1 string reference to 'date_validate'
File
- includes/
form.inc, line 867
Code
function date_validate($form) {
if (!checkdate($form['#value']['month'], $form['#value']['day'], $form['#value']['year'])) {
form_error($form, t('The specified date is invalid.'));
}
}
Login or register to post comments