You are here

function demo_set_default in Demonstration site (Sandbox / Snapshot) 5

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_set_default()
demo_dump_submit in ./demo.admin.inc
demo_manage_submit in ./demo.admin.inc

File

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

Code

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