You are here

function elysia_cron_reset_stats in Elysia Cron 6.2

Same name and namespace in other branches
  1. 5.2 elysia_cron.module \elysia_cron_reset_stats()
  2. 5 elysia_cron.module \elysia_cron_reset_stats()
  3. 6 elysia_cron.module \elysia_cron_reset_stats()
  4. 7.2 elysia_cron.module \elysia_cron_reset_stats()
  5. 7 elysia_cron.module \elysia_cron_reset_stats()
1 call to elysia_cron_reset_stats()
elysia_cron_reset_statistics_form_submit in ./elysia_cron.admin.inc

File

./elysia_cron.module, line 694

Code

function elysia_cron_reset_stats() {
  global $elysia_cron_settings, $elysia_cron_settings_by_channel;
  elysia_cron_initialize();
  foreach ($elysia_cron_settings as $job => $conf) {
    elysia_cron_set_job_stats($job, -1, 0, 0, 0, 0);
  }
  foreach ($elysia_cron_settings_by_channel as $channel => $conf) {
    elysia_cron_set_channel_stats($channel, -1, 0, 0, 0, 0, 0, 0, 0, 0);
  }
}