Modifying Lesson code to not randomize multi-choice answers

Re: Modifying Lesson code to not randomize multi-choice answers

by Joseph Rézeau -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Brian,

Just tried the hack I had suggested on a 1.9.9 version of Moodle and it works as advertised. In the user interface this question type is called "Multiple choice", but in the php files it's referred to as LESSON_MULTICHOICE.

The "recipe" I gave has not changed:

in file mod/lesson/view.php, simply comment out line 612:

case LESSON_MULTICHOICE :
$i = 0;
//shuffle($answers);
foreach ($answers as $answer) {...

Joseph