function node_recur_node_recur_form_validate in Node recur 7.2
Same name and namespace in other branches
- 7 node_recur.pages.inc \node_recur_node_recur_form_validate()
Validate the node recur form All validation is handled in date_repeat_field_widget_validate
File
- ./
node_recur.pages.inc, line 113
Code
function node_recur_node_recur_form_validate(&$form, &$form_state) {
// Allow other modules to validate the dates
$errors = module_invoke_all('node_recur_validate_dates', $form['#node'], $form_state);
foreach ($errors as $error) {
form_set_error($error['field'], $error['message']);
}
}