You are here

function demo_reset_confirm_submit in Demonstration site (Sandbox / Snapshot) 5

Same name and namespace in other branches
  1. 6 demo.admin.inc \demo_reset_confirm_submit()
  2. 7 demo.admin.inc \demo_reset_confirm_submit()
1 call to demo_reset_confirm_submit()
demo_reset_now_submit in ./demo.module

File

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

Code

function demo_reset_confirm_submit($form_id, $values) {

  // Increase PHP's max_execution_time for large dumps.
  @set_time_limit(600);

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

  // Save time of last reset.
  variable_set('demo_reset_last', time());
  return isset($values['redirect']) ? $values['redirect'] : 'admin/build/demo';
}