mirror of
https://github.com/moodle/moodle.git
synced 2025-03-21 16:10:15 +01:00
Merge branch 'MDL-74611' of https://github.com/timhunt/moodle
This commit is contained in:
commit
9943699604
@ -630,14 +630,6 @@ abstract class moodleform_mod extends moodleform {
|
||||
$mform->addHelpButton('cmidnumber', 'idnumbermod');
|
||||
}
|
||||
|
||||
if ($this->_features->groups) {
|
||||
$options = array(NOGROUPS => get_string('groupsnone'),
|
||||
SEPARATEGROUPS => get_string('groupsseparate'),
|
||||
VISIBLEGROUPS => get_string('groupsvisible'));
|
||||
$mform->addElement('select', 'groupmode', get_string('groupmode', 'group'), $options, NOGROUPS);
|
||||
$mform->addHelpButton('groupmode', 'groupmode', 'group');
|
||||
}
|
||||
|
||||
if ($CFG->downloadcoursecontentallowed) {
|
||||
$choices = [
|
||||
DOWNLOAD_COURSE_CONTENT_DISABLED => get_string('no'),
|
||||
@ -654,6 +646,14 @@ abstract class moodleform_mod extends moodleform {
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->_features->groups) {
|
||||
$options = array(NOGROUPS => get_string('groupsnone'),
|
||||
SEPARATEGROUPS => get_string('groupsseparate'),
|
||||
VISIBLEGROUPS => get_string('groupsvisible'));
|
||||
$mform->addElement('select', 'groupmode', get_string('groupmode', 'group'), $options, NOGROUPS);
|
||||
$mform->addHelpButton('groupmode', 'groupmode', 'group');
|
||||
}
|
||||
|
||||
if ($this->_features->groupings) {
|
||||
// Groupings selector - used to select grouping for groups in activity.
|
||||
$options = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user