You are here

function demo_reset_confirm_submit in Demonstration site (Sandbox / Snapshot) 7

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

Form submit handler for demo_reset_confirm().

File

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

Code

function demo_reset_confirm_submit($form, &$form_state) {

  // Reset site to chosen snapshot.
  _demo_reset($form_state['values']['filename']);

  // Do not redirect from the reset confirmation form by default, as it is
  // likely that the user wants to reset all over again (e.g., keeping the
  // browser tab open).
}