Skip to content

Commit

Permalink
MDL-8807 and MDL-8564: Jamie had replaced the three group modes with …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
nicolasconnault committed Mar 22, 2007
1 parent 64cba5c commit b1c72d0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/form/modgroupmode.php
Expand Up @@ -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;
Expand All @@ -52,4 +55,4 @@ function onQuickFormEvent($event, $arg, &$caller)
}

}
?>
?>

0 comments on commit b1c72d0

Please sign in to comment.