You are here

function demo_reset_set_default in Demonstration site (Sandbox / Snapshot) 7

Same name and namespace in other branches
  1. 8 demo.module \demo_reset_set_default()
  2. 6 demo_reset.module \demo_reset_set_default()

Sets a specific snapshot as default for cron runs or the site reset block.

Parameters

$filename: The filename of the snapshot.

2 calls to demo_reset_set_default()
demo_reset_demo_dump in demo_reset/demo_reset.module
Implements hook_demo_dump().
demo_reset_demo_manage_form_submit in demo_reset/demo_reset.module
Form submit handler for demo_manage_form().

File

demo_reset/demo_reset.module, line 79
Demonstration site reset module.

Code

function demo_reset_set_default($filename) {
  variable_set('demo_dump_cron', $filename);
  drupal_set_message(t('Snapshot %title will be used for cron runs.', array(
    '%title' => $filename,
  )));
}