You are here

function elysia_cron_set_channel_disabled in Elysia Cron 7.2

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

Update channel status.

Parameters

string $channel: Channel name.

bool $value: New channel status: TRUE - enabled FALSE - disabled.

2 calls to elysia_cron_set_channel_disabled()
drush_elysia_cron_run_wrapper in ./elysia_cron.drush.inc
Custom callback for 'elysia-cron' drush command.
elysia_cron_settings_form_submit in ./elysia_cron.admin.inc
Submit handler for 'elysia_cron_settings_form' form.

File

./elysia_cron.module, line 419

Code

function elysia_cron_set_channel_disabled($channel, $value) {
  elysia_cron_set($channel, TRUE, array(
    'disable' => $value ? 1 : 0,
  ));
}