Modifying Lesson code to not randomize multi-choice answers

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

por Joseph Rézeau -
Número de respuestas: 0
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers Imagen de Testers Imagen de 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