public function JobScheduler::removeAll in Job Scheduler 7
Same name and namespace in other branches
- 6 JobScheduler.inc \JobScheduler::removeAll()
- 7.2 JobScheduler.inc \JobScheduler::removeAll()
Remove all jobs for a given type.
File
- ./
JobScheduler.inc, line 120 - JobScheduler class.
Class
- JobScheduler
- Manage scheduled jobs.
Code
public function removeAll($type) {
db_delete('job_schedule')
->condition('name', $this->name)
->condition('type', $type)
->execute();
}