You are here

public function JobScheduler::removeAll in Job Scheduler 6

Same name and namespace in other branches
  1. 7.2 JobScheduler.inc \JobScheduler::removeAll()
  2. 7 JobScheduler.inc \JobScheduler::removeAll()

Remove all jobs for a given callback and type.

File

./JobScheduler.inc, line 79
JobScheduler class.

Class

JobScheduler
Handle adding and removing jobs from schedule.

Code

public function removeAll($callback, $type) {
  db_query("DELETE FROM {job_schedule} WHERE callback = '%s' AND type = '%s'", $callback, $type);
  return db_affected_rows();
}