Permalink
Browse files

MDL-38093 quiz settings: make overall feeback editors collapsible.

  • Loading branch information...
timhunt committed Feb 18, 2013
1 parent 1dd6835 commit e58b2c326b4dee8b6991ffb95f7feed1adb4a82b
Showing with 4 additions and 4 deletions.
  1. +4 −4 mod/quiz/mod_form.php
View
@@ -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;
@@ -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%'),

0 comments on commit e58b2c3

Please sign in to comment.