function accessibility_test_delete_form

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

Form callback: confirmation form for deleting a model.

Parameters

$test: The model to delete

See also

confirm_form()

1 string reference to 'accessibility_test_delete_form'
accessibility_menu in sites/all/modules/ulmus/accessibility/accessibility.module
Implements hook_menu().

File

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

Code

function accessibility_test_delete_form($form, &$form_state, $test) {
  $form_state['accessibility_test'] = $test;

  $form['#submit'][] = 'accessibility_test_delete_form_submit';

  $form = confirm_form($form, t('Are you sure you want to delete test %name?', array('%name' => $test->name)), 'accessibility-test/' . $test->test_id, '<p>' . t('This action cannot be undone.') . '</p>', t('Delete'), t('Cancel'), 'confirm');

  return $form;
}
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.