You are here

function elysia_cron_is_channel_disabled in Elysia Cron 7

Same name and namespace in other branches
  1. 5.2 elysia_cron.module \elysia_cron_is_channel_disabled()
  2. 5 elysia_cron.module \elysia_cron_is_channel_disabled()
  3. 6.2 elysia_cron.module \elysia_cron_is_channel_disabled()
  4. 6 elysia_cron.module \elysia_cron_is_channel_disabled()
  5. 7.2 elysia_cron.module \elysia_cron_is_channel_disabled()
2 calls to elysia_cron_is_channel_disabled()
elysia_cron_initialize in ./elysia_cron.module
elysia_cron_settings_form in ./elysia_cron.admin.inc

File

./elysia_cron.module, line 439

Code

function elysia_cron_is_channel_disabled($channel, $default = false, $refresh = false) {

  // May be overriden by a static conf
  if (isset($GLOBALS['conf'][$n = 'ecc_' . _ec_get_name($channel) . '_d'])) {
    return $GLOBALS['conf'][$n];
  }
  return elysia_cron_get($channel, true, 'disable', $default, $refresh);
}