function elysia_cron_reset_statistics_form in Elysia Cron 7
Same name and namespace in other branches
- 5.2 elysia_cron.admin.inc \elysia_cron_reset_statistics_form()
- 5 elysia_cron.admin.inc \elysia_cron_reset_statistics_form()
- 6.2 elysia_cron.admin.inc \elysia_cron_reset_statistics_form()
- 6 elysia_cron.admin.inc \elysia_cron_reset_statistics_form()
- 7.2 elysia_cron.admin.inc \elysia_cron_reset_statistics_form()
1 string reference to 'elysia_cron_reset_statistics_form'
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;
}