function rules_core_action_execute_validate in Rules 6
Apply the core actions form validation
Related topics
File
- rules/
modules/ rules.rules.inc, line 393 - rules integration for the rules module
Code
function rules_core_action_execute_validate(&$form, &$form_state) {
$element = $form_state['element'];
$info = rules_get_element_info($element);
if ($info['configurable'] && function_exists($function = $info['action_name'] . '_validate')) {
$function($form['settings'], $form_state);
}
}