You are here

function rules_scheduler_action_delete in Rules 7.2

Same name and namespace in other branches
  1. 6 rules_scheduler/rules_scheduler.rules.inc \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 186
Rules integration for the rules scheduler module.

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();
}