function rules_scheduler_action_delete
Action: Delete scheduled tasks.
Related topics
1 string reference to 'rules_scheduler_action_delete'
- rules_scheduler_rules_action_info in rules_scheduler/
rules_scheduler.rules.inc - Implements hook_rules_action_info().
File
-
rules_scheduler/
rules_scheduler.rules.inc, line 188
Code
function rules_scheduler_action_delete($component_name = NULL, $task_identifier = NULL) {
$query = db_delete('rules_scheduler');
if (!empty($component_name)) {
$query->condition('config', $component_name);
}
if (!empty($task_identifier)) {
$query->condition('identifier', $task_identifier);
}
$query->execute();
}