You are here

public function JobScheduler::remove in Job Scheduler 6

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

Remove a job from the schedule, replace any existing job.

A job is uniquely identified by $job = array(callbac, type, id).

2 calls to JobScheduler::remove()
JobScheduler::cron in ./JobScheduler.inc
Periodic cron task.
JobScheduler::set in ./JobScheduler.inc
Add a job to the schedule, replace any existing job.

File

./JobScheduler.inc, line 72
JobScheduler class.

Class

JobScheduler
Handle adding and removing jobs from schedule.

Code

public function remove($job) {
  db_query("DELETE FROM {job_schedule} WHERE callback = '%s' AND type = '%s' AND id = %d", $job['callback'], $job['type'], isset($job['id']) ? $job['id'] : 0);
}