function rules_scheduler_rules_config_delete
Implements hook_rules_config_delete().
File
-
rules_scheduler/
rules_scheduler.module, line 204
Code
function rules_scheduler_rules_config_delete($rules_config) {
// Only react on real delete, not revert.
if (!$rules_config->hasStatus(ENTITY_IN_CODE)) {
// Delete all tasks scheduled for this config.
db_delete('rules_scheduler')->condition('config', $rules_config->name)
->execute();
}
}