job_scheduler.module in Job Scheduler 6
Same filename and directory in other branches
job scheduler module.
File
job_scheduler.moduleView source
<?php
/**
* @file
* job scheduler module.
*/
define('JOB_SCHEDULER_REQUEST_TIME', time());
/**
* Implementation of hook_cron().
*/
function job_scheduler_cron() {
job_scheduler()
->cron();
}
/**
* Return a JobScheduler object.
*/
function job_scheduler() {
// In case the Autoload module or similar is installed, this check will
// autoload the class file.
if (!class_exists('JobScheduler', TRUE)) {
// Otherwise we manually include the file.
module_load_include('inc', 'job_scheduler', 'JobScheduler');
}
return JobScheduler::instance();
}
Functions
Name![]() |
Description |
---|---|
job_scheduler | Return a JobScheduler object. |
job_scheduler_cron | Implementation of hook_cron(). |
Constants
Name![]() |
Description |
---|---|
JOB_SCHEDULER_REQUEST_TIME | @file job scheduler module. |