You are here

function elysia_cron_reset_statistics_form in Elysia Cron 7.2

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

Form builder for statistic reset form.

Return value

array From API array.

1 string reference to 'elysia_cron_reset_statistics_form'
elysia_cron_menu in ./elysia_cron.module
Implements hook_menu().

File

./elysia_cron.admin.inc, line 885
Admin page callbacks for the elysia cron module.

Code

function elysia_cron_reset_statistics_form() {
  $form['fieldset'] = array(
    '#type' => 'fieldset',
    '#title' => t('Reset statistics'),
    '#description' => t('Deletes all cron execution statistics (Last run, last exec time, exec count, avg/max exec time...). Do not touch cron settings.<br /><b>This operation can 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;
}