You are here

function elysia_cron_set in Elysia Cron 7.2

Same name and namespace in other branches
  1. 5.2 elysia_cron.module \elysia_cron_set()
  2. 5 elysia_cron.module \elysia_cron_set()
  3. 6.2 elysia_cron.module \elysia_cron_set()
  4. 6 elysia_cron.module \elysia_cron_set()
  5. 7 elysia_cron.module \elysia_cron_set()
24 calls to elysia_cron_set()
elysia_cron_execute_aborted in ./elysia_cron.module
elysia_cron_internal_execute_channel in ./elysia_cron.module
Internal function to execute all jobs in a channel.
elysia_cron_internal_execute_job in ./elysia_cron.module
Internal function to execute a single job.
elysia_cron_reset_channel_disabled in ./elysia_cron.module
Reset channel status to default (disabled).
elysia_cron_reset_channel_rule in ./elysia_cron.module
Reset channel's rule to default.

... See full list

File

./elysia_cron.module, line 341

Code

function elysia_cron_set($name, $channel = FALSE, $values = array()) {
  if ($channel) {
    $name = ':' . $name;
  }
  db_merge('elysia_cron')
    ->key(array(
    'name' => $name,
  ))
    ->fields($values)
    ->execute();
  global $_elysia_cron_db_cache;
  unset($_elysia_cron_db_cache[$name]);
}