if ($form = data_submitted() && has_capability('mod/choice:choose', $context)) {
$timenow = time();
if (has_capability('mod/choice:deleteresponses', $context)) {
- if ($action == 'delete') { //some responses need to be deleted
+ if ($action == 'delete') { //some responses need to be deleted
choice_delete_responses($attemptids, $choice->id); //delete responses.
redirect("view.php?id=$cm->id");
}
echo '<div class="clearer"></div>';
if ($choice->intro) {
- print_box(format_module_intro('choice', $choice, $cm->id), 'generalbox', 'intro');
+ echo $OUTPUT->box(format_module_intro('choice', $choice, $cm->id), 'generalbox', 'intro');
}
$current = false; // Initialise for later