function elysia_cron_is_channel_disabled in Elysia Cron 7.2
Same name and namespace in other branches
- 5.2 elysia_cron.module \elysia_cron_is_channel_disabled()
- 5 elysia_cron.module \elysia_cron_is_channel_disabled()
- 6.2 elysia_cron.module \elysia_cron_is_channel_disabled()
- 6 elysia_cron.module \elysia_cron_is_channel_disabled()
- 7 elysia_cron.module \elysia_cron_is_channel_disabled()
Get status of specified channel.
Parameters
string $channel: Channel name.
bool $default: Default value for channel status.
bool $refresh: If TRUE - fresh status will be get from database.
Return value
bool Channel status.
2 calls to elysia_cron_is_channel_disabled()
- 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 400
Code
function elysia_cron_is_channel_disabled($channel, $default = FALSE, $refresh = FALSE) {
// May be overridden 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);
}