mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
Merge branch 'MDL-77877' of https://github.com/paulholden/moodle
This commit is contained in:
commit
31cfe5aaff
@ -82,13 +82,13 @@ class group_form extends moodleform {
|
||||
$mform->addHelpButton('participation', 'participation', 'group');
|
||||
$mform->setType('participation', PARAM_BOOL);
|
||||
$mform->setDefault('participation', 1);
|
||||
$mform->disabledIf('participation', 'visibility', 'in', [GROUPS_VISIBILITY_OWN, GROUPS_VISIBILITY_NONE]);
|
||||
$mform->hideIf('participation', 'visibility', 'in', [GROUPS_VISIBILITY_OWN, GROUPS_VISIBILITY_NONE]);
|
||||
|
||||
// Group conversation messaging.
|
||||
if (\core_message\api::can_create_group_conversation($USER->id, $coursecontext)) {
|
||||
$mform->addElement('selectyesno', 'enablemessaging', get_string('enablemessaging', 'group'));
|
||||
$mform->addHelpButton('enablemessaging', 'enablemessaging', 'group');
|
||||
$mform->disabledIf('enablemessaging', 'visibility', 'in', [GROUPS_VISIBILITY_OWN, GROUPS_VISIBILITY_NONE]);
|
||||
$mform->hideIf('enablemessaging', 'visibility', 'in', [GROUPS_VISIBILITY_OWN, GROUPS_VISIBILITY_NONE]);
|
||||
}
|
||||
|
||||
$mform->addElement('static', 'currentpicture', get_string('currentpicture'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user