You are here

function quiz_admin_result_delete_form in Quiz 6.2

Same name and namespace in other branches
  1. 5.2 quiz.module \quiz_admin_result_delete_form()
  2. 5 quiz.module \quiz_admin_result_delete_form()
  3. 6.6 quiz.admin.inc \quiz_admin_result_delete_form()
  4. 6.3 quiz.admin.inc \quiz_admin_result_delete_form()
  5. 6.5 quiz.admin.inc \quiz_admin_result_delete_form()

Creates a form used for deleting a set of quiz results.

1 string reference to 'quiz_admin_result_delete_form'
quiz_admin_result_delete in ./quiz.admin.inc
Delete Result.

File

./quiz.admin.inc, line 342
Administrator interface for Quiz module.

Code

function quiz_admin_result_delete_form() {
  $form['del_rid'] = array(
    '#type' => 'hidden',
    '#value' => arg(2),
  );
  return confirm_form($form, t('Are you sure you want to delete this @quiz result?', array(
    '@quiz' => QUIZ_NAME,
  )), 'admin/quiz/results', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}