protected function JobScheduler::queue in Job Scheduler 6
Add a job to a queue.
1 call to JobScheduler::queue()
- JobScheduler::cron in ./
JobScheduler.inc - Periodic cron task.
File
- ./
JobScheduler.inc, line 127 - JobScheduler class.
Class
- JobScheduler
- Handle adding and removing jobs from schedule.
Code
protected function queue($job) {
if (module_exists('drupal_queue')) {
drupal_queue_include();
if ($queue = drupal_queue_get($job['callback'])) {
if ($queue
->createItem($job)) {
return TRUE;
}
}
}
return FALSE;
}