You are here

function elysia_cron_active_jobs in Elysia Cron 5.2

Same name and namespace in other branches
  1. 5 elysia_cron.module \elysia_cron_active_jobs()
  2. 6.2 elysia_cron.module \elysia_cron_active_jobs()
  3. 6 elysia_cron.module \elysia_cron_active_jobs()
  4. 7.2 elysia_cron.module \elysia_cron_active_jobs()
  5. 7 elysia_cron.module \elysia_cron_active_jobs()

Get all jobs that needs to be executed in a channel

1 call to elysia_cron_active_jobs()
elysia_cron_run in ./elysia_cron.module

File

./elysia_cron.module, line 1189

Code

function elysia_cron_active_jobs($channel) {
  global $elysia_cron_settings_by_channel;
  $jobs = array();
  foreach ($elysia_cron_settings_by_channel[$channel] as $job => $conf) {
    if ($job != '#data') {
      if (elysia_cron_should_run($conf)) {
        $jobs[] = $job;
      }
    }
  }
  return $jobs;
}