Choice: MDL-20440 Added completion support to Choice (mark completed when user makes choice)

This commit is contained in:
Sam Marshall 2010-10-14 14:58:43 +00:00
parent 14333c1128
commit bc499733f8
9 changed files with 108 additions and 15 deletions

View file

@ -46,7 +46,7 @@
add_to_log($course->id, "choice", "report", "report.php?id=$cm->id", "$choice->id",$cm->id);
if (data_submitted() && $action == 'delete' && has_capability('mod/choice:deleteresponses',$context) && confirm_sesskey()) {
choice_delete_responses($attemptids, $choice->id); //delete responses.
choice_delete_responses($attemptids, $choice, $cm, $course); //delete responses.
redirect("report.php?id=$cm->id");
}