From b1c72d0a0778d636942842277bdec470d7368b46 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 22 Mar 2007 05:24:29 +0000 Subject: [PATCH] MDL-8807 and MDL-8564: Jamie had replaced the three group modes with Yes and No, for some undocumented reason (See http://moodle.cvs.sourceforge.net/moodle/moodle/lib/form/modgroupmode.php?diff_format=h&view=log&pathrev=MOODLE_18_STABLE#revtext). I reverted his changes, and this seems to work normally now. --- lib/form/modgroupmode.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/form/modgroupmode.php b/lib/form/modgroupmode.php index d54361ac67712..6651e0f618536 100644 --- a/lib/form/modgroupmode.php +++ b/lib/form/modgroupmode.php @@ -42,8 +42,11 @@ function onQuickFormEvent($event, $arg, &$caller) switch ($event) { case 'createElement': $choices = array(); - $choices[0] = get_string('no'); - $choices[1] = get_string('yes'); + + $choices[NOGROUPS] = get_string('groupsnone'); + $choices[SEPARATEGROUPS] = get_string('groupsseparate'); + $choices[VISIBLEGROUPS] = get_string('groupsvisible'); + $this->setHelpButton(array('groupmode', get_string('groupmode'))); $this->load($choices); break; @@ -52,4 +55,4 @@ function onQuickFormEvent($event, $arg, &$caller) } } -?> \ No newline at end of file +?>