You are here

function demo_reset in Demonstration site (Sandbox / Snapshot) 6

Same name and namespace in other branches
  1. 5 demo.admin.inc \demo_reset()
  2. 7 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.module
Form submit handler for demo_reset_block_form().
demo_reset_cron in ./demo_reset.module
Implementation of hook_cron().
1 string reference to 'demo_reset'
demo_drush_status in ./demo.drush.inc
Callback for drush command demo-status.

File

./demo.module, line 112
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);
}