public function JobScheduler::info in Job Scheduler 7
Same name and namespace in other branches
- 7.2 JobScheduler.inc \JobScheduler::info()
Returns scheduler info.
Throws
See also
hook_cron_job_scheduler_info().
1 call to JobScheduler::info()
- JobScheduler::dispatch in ./
JobScheduler.inc - Dispatches a job.
File
- ./
JobScheduler.inc, line 49 - JobScheduler class.
Class
- JobScheduler
- Manage scheduled jobs.
Code
public function info() {
// Collect info for all schedules once.
static $info;
if (!$info) {
$info = module_invoke_all('cron_job_scheduler_info');
drupal_alter('cron_job_scheduler_info', $info);
}
if (isset($info[$this->name])) {
return $info[$this->name];
}
throw new JobSchedulerException('Could not find Job Scheduler cron information for ' . check_plain($this->name));
}