You are here

function job_scheduler_info in Job Scheduler 7.2

Same name and namespace in other branches
  1. 8.3 job_scheduler.module \job_scheduler_info()
  2. 8.2 job_scheduler.module \job_scheduler_info()

Collects and returns scheduler info.

Parameters

string $name: Name of the schedule.

Return value

array Information for the schedule if $name, all the information if not

See also

hook_cron_job_scheduler_info()

3 calls to job_scheduler_info()
JobScheduler::info in ./JobScheduler.inc
Returns scheduler info.
job_scheduler_cron in ./job_scheduler.module
Implements hook_cron().
job_scheduler_cron_queue_info in ./job_scheduler.module
Implements hook_cron_queue_info().

File

./job_scheduler.module, line 120
Main file for the Job Scheduler.

Code

function job_scheduler_info($name = NULL) {
  $info =& drupal_static(__FUNCTION__);
  if (!$info) {
    $info = module_invoke_all('cron_job_scheduler_info');
    drupal_alter('cron_job_scheduler_info', $info);
  }
  if ($name) {
    return isset($info[$name]) ? $info[$name] : NULL;
  }
  else {
    return $info;
  }
}