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';
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.