function rules_scheduler_action_delete_validate

Cancels scheduled task action validation callback.

Related topics

File

rules_scheduler/rules_scheduler.rules.inc, line 202

Code

function rules_scheduler_action_delete_validate($element) {
    if (empty($element->settings['task']) && empty($element->settings['task:select']) && empty($element->settings['component']) && empty($element->settings['component:select'])) {
        throw new RulesIntegrityException(t('You have to specify at least either a component or a task identifier.'), $element);
    }
}