function rules_ui_add_event_validate
Validation callback for adding an event.
1 call to rules_ui_add_event_validate()
- rules_ui_add_reaction_rule_validate in rules_admin/
rules_admin.inc - Form validation callback.
1 string reference to 'rules_ui_add_event_validate'
- rules_ui_add_event_page in ui/
ui.forms.inc - Form builder for the "add event" page.
File
-
ui/
ui.forms.inc, line 491
Code
function rules_ui_add_event_validate($form, $form_state) {
$handler = rules_get_event_handler($form_state['values']['event']);
$handler->extractFormValues($form['event_settings'], $form_state);
try {
$handler->validate();
} catch (RulesIntegrityException $e) {
form_set_error(implode('][', $e->keys), $e->getMessage());
}
}