You are here

function demo_reset_now in Demonstration site (Sandbox / Snapshot) 5

1 string reference to 'demo_reset_now'
demo_block in ./demo.module
Implementation of hook_block().

File

./demo.module, line 108
Demonstration Site module

Code

function demo_reset_now() {
  $form['redirect'] = array(
    '#type' => 'value',
    '#value' => $_GET['q'],
  );
  $form['filename'] = array(
    '#type' => 'value',
    '#value' => variable_get('demo_dump_cron', 'demo_site'),
  );
  $form['snapshot'] = array(
    '#value' => t('Active snapshot: !snapshot', array(
      '!snapshot' => variable_get('demo_dump_cron', 'demo_site'),
    )),
  );
  $form['reset-demo'] = array(
    '#type' => 'submit',
    '#value' => t('Reset now'),
  );
  return $form;
}