Skip to content

Commit

Permalink
Merge branch 'MDL-38490_23' of git://github.com/timhunt/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_23_STABLE
  • Loading branch information
stronk7 committed Mar 19, 2013
2 parents 665f13c + d8a20b8 commit e815163
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions question/previewlib.php
Expand Up @@ -56,18 +56,18 @@ public function definition() {
array('size' => '5')); array('size' => '5'));
$mform->setType('maxmark', PARAM_FLOAT); $mform->setType('maxmark', PARAM_FLOAT);


$mform->addElement('submit', 'saverestart',
get_string('restartwiththeseoptions', 'question'));

$mform->addElement('header', 'optionsheader', get_string('displayoptions', 'question'));

if ($this->_customdata['maxvariant'] > 1) { if ($this->_customdata['maxvariant'] > 1) {
$variants = range(1, $this->_customdata['maxvariant']); $variants = range(1, $this->_customdata['maxvariant']);
$mform->addElement('select', 'variant', get_string('questionvariant', 'question'), $mform->addElement('select', 'variant', get_string('questionvariant', 'question'),
array_combine($variants, $variants)); array_combine($variants, $variants));
} }
$mform->setType('variant', PARAM_INT); $mform->setType('variant', PARAM_INT);


$mform->addElement('submit', 'saverestart',
get_string('restartwiththeseoptions', 'question'));

$mform->addElement('header', 'optionsheader', get_string('displayoptions', 'question'));

$mform->addElement('select', 'correctness', get_string('whethercorrect', 'question'), $mform->addElement('select', 'correctness', get_string('whethercorrect', 'question'),
$hiddenofvisible); $hiddenofvisible);


Expand Down

0 comments on commit e815163

Please sign in to comment.