You are here

function demo_reset_confirm in Demonstration site (Sandbox / Snapshot) 6

Same name and namespace in other branches
  1. 5 demo.admin.inc \demo_reset_confirm()
  2. 7 demo.admin.inc \demo_reset_confirm()

Form builder to reset site to a snapshot.

1 string reference to 'demo_reset_confirm'
demo_menu in ./demo.module
Implements hook_menu().

File

./demo.admin.inc, line 199
Demonstration Site administrative pages

Code

function demo_reset_confirm() {
  $form['dump'] = array(
    '#type' => 'fieldset',
    '#title' => t('Available snapshots'),
  );
  $form['dump'] += demo_get_dumps();
  return confirm_form($form, t('Are you sure you want to reset the site?'), 'admin/build/demo', t('Resetting the site will overwrite all changes that have been made to this Drupal installation since the chosen snapshot.<br /><br /><div style="color: red; font-weight: bold; font-size: 18px;"><center>THIS ACTION CANNOT BE UNDONE!</center><br /></div>'), t('Reset'), t('Cancel'));
}