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;
}