You are here

function elysia_cron_reset_statistics_form in Elysia Cron 5

Same name and namespace in other branches
  1. 5.2 elysia_cron.admin.inc \elysia_cron_reset_statistics_form()
  2. 6.2 elysia_cron.admin.inc \elysia_cron_reset_statistics_form()
  3. 6 elysia_cron.admin.inc \elysia_cron_reset_statistics_form()
  4. 7.2 elysia_cron.admin.inc \elysia_cron_reset_statistics_form()
  5. 7 elysia_cron.admin.inc \elysia_cron_reset_statistics_form()
1 string reference to 'elysia_cron_reset_statistics_form'
elysia_cron_maintenance_page in ./elysia_cron.admin.inc

File

./elysia_cron.admin.inc, line 767

Code

function elysia_cron_reset_statistics_form() {
  $form = array();
  $form['fieldset'] = array(
    '#type' => 'fieldset',
    '#title' => t('Reset statistics'),
    '#description' => t('Deletes all cron execution statitics (Last run, last exec time, exec count, avg/max exec time...). Do not touch cron settings.<br /><b>This operation could not be reverted</b><br />'),
  );
  $form['fieldset']['reset'] = array(
    '#type' => 'submit',
    '#value' => t('Reset'),
    '#attributes' => array(
      'onclick' => 'return confirm(\'' . htmlentities(t('Are you sure you want to reset statistics?')) . '\')',
    ),
  );
  return $form;
}