You are here

function demo_dump_form_submit in Demonstration site (Sandbox / Snapshot) 7

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

Form submit handler for demo_dump_form().

File

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

Code

function demo_dump_form_submit($form, &$form_state) {
  if ($fileconfig = _demo_dump($form_state['values']['dump'])) {
    drupal_set_message(t('Snapshot %filename has been created.', array(
      '%filename' => $form_state['values']['dump']['filename'],
    )));
  }
  $form_state['redirect'] = 'admin/structure/demo';
}