mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
586b2c82ed
This makes it possible for students to take a tedious quiz, save it half-way and have it graded. The student can then, at a later point, get back to the quiz and have the previous answers already filled in and graded. The student can then continue with the remaining questions as well as redo all the answers that got wrong at the previous attempt. It seems to work fine with one little twisted exception: Say that the student attempts the quiz first and that the teacher thereafter edits the quiz and removes or adds a few questions. This will work out fine for as long as the teacher do not get the idea of adding a question with question type RANDOM. The quiz will be fully functional again after removing that RANDOM question or resetting the option 'Each attempt builds on the last" to NO. Not a very serious problem but it takes someone with greater insight in question type RANDOM to resolve it. As always, I can not commit lang/en/quiz.php. --- As I was using the function quiz_get_attempt_responses I had it refactored removing the obsolete argument $quiz. I also changed the call from review.php
12 lines
466 B
PHP
12 lines
466 B
PHP
<?PHP // $Id$
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
// Code fragment to define the version of quiz
|
|
// This fragment is called by moodle_needs_upgrading() and /admin/index.php
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
$module->version = 2003080301; // The (date) version of this module
|
|
$module->cron = 0; // How often should cron check this module (seconds)?
|
|
|
|
?>
|