You are here

function quiz_admin_result_delete_form_submit in Quiz 5

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

File

./quiz.module, line 1440
Quiz Module

Code

function quiz_admin_result_delete_form_submit($form_id, $form_values) {
  db_query("DELETE FROM {quiz_result} WHERE rid = %d", $form_values['del_rid']);
  db_query("DELETE FROM {quiz_question_results} WHERE result_rid = %d", $form_values['del_rid']);
  drupal_set_message(t('Deleted result.'));
  return "admin/quiz";
}