You are here

function demo_delete_confirm_submit in Demonstration site (Sandbox / Snapshot) 5

Same name and namespace in other branches
  1. 6 demo.admin.inc \demo_delete_confirm_submit()
  2. 7 demo.admin.inc \demo_delete_confirm_submit()

File

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

Code

function demo_delete_confirm_submit($form_id, $values) {
  $files = demo_get_fileconfig($values['filename']);
  unlink($files['sqlfile']);
  unlink($files['infofile']);
  drupal_set_message(t('Snapshot %title has been deleted.', array(
    '%title' => $values['filename'],
  )));
  return 'admin/build/demo/manage';
}