You are here

public function JobScheduler::removeAll in Job Scheduler 7.2

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

Remove all jobs for a given type.

File

./JobScheduler.inc, line 129
JobScheduler class.

Class

JobScheduler
Manage scheduled jobs.

Code

public function removeAll($type) {
  db_delete('job_schedule')
    ->condition('name', $this->name)
    ->condition('type', $type)
    ->execute();
}