function accessibility_test_delete_form_submit

cis7 accessibility.module accessibility_test_delete_form_submit($form, &$form_state)
cle7 accessibility.module accessibility_test_delete_form_submit($form, &$form_state)
elmsmedia7 accessibility.module accessibility_test_delete_form_submit($form, &$form_state)
icor7 accessibility.module accessibility_test_delete_form_submit($form, &$form_state)
meedjum_blog7 accessibility.module accessibility_test_delete_form_submit($form, &$form_state)
mooc7 accessibility.module accessibility_test_delete_form_submit($form, &$form_state)

Submit callback for model_delete_form

1 string reference to 'accessibility_test_delete_form_submit'
accessibility_test_delete_form in sites/all/modules/ulmus/accessibility/accessibility.module
Form callback: confirmation form for deleting a model.

File

sites/all/modules/ulmus/accessibility/accessibility.module, line 442

Code

function accessibility_test_delete_form_submit($form, &$form_state) {
  $test = $form_state['accessibility_test'];
  $test = accessibility_test_load($test->test_id);
  accessibility_test_delete($test);

  drupal_set_message(t('The test %name has been deleted.', array('%name' => $test->name)));
  watchdog('accessibility_test', 'Deleted test %name.', array('%name' => $test->name));

  $form_state['redirect'] = 'admin/config/accessibility/tests/existing';
}