You are here

function demo_reset in Demonstration site (Sandbox / Snapshot) 7

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

Reset site using snapshot.

Parameters

$filename: Base snapshot filename, without extension.

$verbose: Whether to output status messages.

2 calls to demo_reset()
demo_reset_block_form_submit in demo_reset/demo_reset.module
Form submit handler for demo_reset_block_form().
demo_reset_cron in demo_reset/demo_reset.module
Implementation of hook_cron().

File

./demo.module, line 111
Demonstration site API Drupal integration functions.

Code

function demo_reset($filename, $verbose = TRUE) {
  module_load_include('inc', 'demo', 'demo.admin');
  return _demo_reset($filename, $verbose);
}