You are here

job_scheduler.module in Job Scheduler 6

job scheduler module.

File

job_scheduler.module
View 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

Namesort descending Description
job_scheduler Return a JobScheduler object.
job_scheduler_cron Implementation of hook_cron().

Constants

Namesort descending Description
JOB_SCHEDULER_REQUEST_TIME @file job scheduler module.