public function JobScheduler::remove in Job Scheduler 7.2
Same name and namespace in other branches
- 6 JobScheduler.inc \JobScheduler::remove()
- 7 JobScheduler.inc \JobScheduler::remove()
Remove a job from the schedule, replace any existing job.
A job is uniquely identified by $job = array(type, id).
4 calls to JobScheduler::remove()
- JobScheduler::dispatch in ./
JobScheduler.inc - Dispatches a job.
- JobScheduler::execute in ./
JobScheduler.inc - Executes a job that.
- JobScheduler::reschedule in ./
JobScheduler.inc - Re-schedule a job if intended to run again.
- JobScheduler::set in ./
JobScheduler.inc - Add a job to the schedule, replace any existing job.
File
- ./
JobScheduler.inc, line 118 - JobScheduler class.
Class
- JobScheduler
- Manage scheduled jobs.
Code
public function remove($job) {
db_delete('job_schedule')
->condition('name', $this->name)
->condition('type', $job['type'])
->condition('id', isset($job['id']) ? $job['id'] : 0)
->execute();
}