You are here

function elysia_cron_get_job_channel in Elysia Cron 7.2

Same name and namespace in other branches
  1. 5.2 elysia_cron.module \elysia_cron_get_job_channel()
  2. 5 elysia_cron.module \elysia_cron_get_job_channel()
  3. 6.2 elysia_cron.module \elysia_cron_get_job_channel()
  4. 6 elysia_cron.module \elysia_cron_get_job_channel()
  5. 7 elysia_cron.module \elysia_cron_get_job_channel()
2 calls to elysia_cron_get_job_channel()
elysia_cron_initialize in ./elysia_cron.module
elysia_cron_settings_form in ./elysia_cron.admin.inc
Form builder for general settings form.

File

./elysia_cron.module, line 776

Code

function elysia_cron_get_job_channel($job, $default = '', $refresh = FALSE) {

  // May be overridden by a static conf.
  if (isset($GLOBALS['conf'][$n = 'ec_' . _ec_get_name($job) . '_c'])) {
    $c = $GLOBALS['conf'][$n];
  }
  else {

    // In this place, 'context' means 'channel'.
    $c = elysia_cron_get($job, FALSE, 'context', $default, $refresh);
  }
  return !$c ? $default : $c;
}