Skip to content

Commit

Permalink
MDL-38093 quiz settings: make overall feeback editors collapsible.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Feb 18, 2013
1 parent 1dd6835 commit e58b2c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mod/quiz/mod_form.php
Expand Up @@ -346,8 +346,8 @@ protected function definition() {
$repeatarray = array();
$repeatedoptions = array();
$repeatarray[] = $mform->createElement('editor', 'feedbacktext',
get_string('feedback', 'quiz'), null, array('maxfiles' => EDITOR_UNLIMITED_FILES,
'noclean' => true, 'context' => $this->context));
get_string('feedback', 'quiz'), array('rows' => 3), array('maxfiles' => EDITOR_UNLIMITED_FILES,
'noclean' => true, 'context' => $this->context, 'collapsed' => 1));
$repeatarray[] = $mform->createElement('text', 'feedbackboundaries',
get_string('gradeboundary', 'quiz'), array('size' => 10));
$repeatedoptions['feedbacktext']['type'] = PARAM_RAW;
Expand All @@ -367,9 +367,9 @@ protected function definition() {

// Put some extra elements in before the button.
$mform->insertElementBefore($mform->createElement('editor',
"feedbacktext[$nextel]", get_string('feedback', 'quiz'), null,
"feedbacktext[$nextel]", get_string('feedback', 'quiz'), array('rows' => 3),
array('maxfiles' => EDITOR_UNLIMITED_FILES, 'noclean' => true,
'context' => $this->context)),
'context' => $this->context, 'collapsed' => 1)),
'boundary_add_fields');
$mform->insertElementBefore($mform->createElement('static',
'gradeboundarystatic2', get_string('gradeboundary', 'quiz'), '0%'),
Expand Down

0 comments on commit e58b2c3

Please sign in to comment.