You are here

function _ultimate_cron_job_load_multiple in Ultimate Cron 7.2

CTools Export load multiple callback.

Parameters

array $names: Names of the jobs to load.

bool $reset: (optional) Reset the ctools export object cache.

Return value

array Array of UltimateCronJob objects.

2 string references to '_ultimate_cron_job_load_multiple'
ultimate_cron_schema in ./ultimate_cron.install
Implements hook_schema().
ultimate_cron_update_7200 in ./ultimate_cron.install
Rename columns and indices to 2.x style.

File

./ultimate_cron.module, line 382

Code

function _ultimate_cron_job_load_multiple($names, $reset = FALSE) {
  $jobs = array();
  foreach (_ultimate_cron_job_load_all($reset) as $name => $job) {
    if (in_array($name, $names)) {
      $jobs[$name] = $job;
    }
  }
  return $jobs;
}