You are here

function demo_delete_confirm_submit in Demonstration site (Sandbox / Snapshot) 7

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

Form submit handler for demo_delete_confirm().

File

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

Code

function demo_delete_confirm_submit($form, &$form_state) {
  $files = demo_get_fileconfig($form_state['values']['filename']);
  unlink($files['sqlfile']);
  unlink($files['infofile']);
  drupal_set_message(t('Snapshot %title has been deleted.', array(
    '%title' => $form_state['values']['filename'],
  )));
  $form_state['redirect'] = 'admin/structure/demo';
}