]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8807 and MDL-8564: Jamie had replaced the three group modes with Yes and No,...
authornicolasconnault <nicolasconnault>
Thu, 22 Mar 2007 05:24:29 +0000 (05:24 +0000)
committernicolasconnault <nicolasconnault>
Thu, 22 Mar 2007 05:24:29 +0000 (05:24 +0000)
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

index d54361ac677123276581c748b45a9ee9da024225..6651e0f618536963c4df282569de0554a7edf7d2 100644 (file)
@@ -42,8 +42,11 @@ class MoodleQuickForm_modgroupmode extends MoodleQuickForm_select{
         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 @@ class MoodleQuickForm_modgroupmode extends MoodleQuickForm_select{
     }
 
 }
-?>
\ No newline at end of file
+?>