From 7e576f4c072197aba307ffebf991c1b6ca3e2ccc Mon Sep 17 00:00:00 2001 From: Max Stachalski Date: Mon, 5 Aug 2024 12:01:08 +0200 Subject: [PATCH] PM-46185 Remove group mode warnings --- lang/en/kialo.php | 2 -- mod_form.php | 17 ----------------- 2 files changed, 19 deletions(-) diff --git a/lang/en/kialo.php b/lang/en/kialo.php index 824d17f..712b608 100644 --- a/lang/en/kialo.php +++ b/lang/en/kialo.php @@ -48,8 +48,6 @@ $string['errors:noguestaccess'] = "Guests cannot access this activity. Please log in."; $string['errors:nopermissiontoview'] = "You do not have permission to view this activity."; $string['errors:resourcelink'] = "Activity cannot be displayed due to an unexpected error. Please try again."; -$string['groupmode_off_info'] = 'Please note that Moodle groups are currently not automatically supported. (More info)'; -$string['groupmode_on_warning'] = 'Moodle groups are currently not automatically supported. If you use the Kialo Moodle Plugin with a course that has multiple groups, all groups will find themselves in the same Kialo discussion.

To manually set up Kialo discussions for each of your groups, please follow the instructions in our help center.

We will release automatic Moodle groups support in Q1 2024. Submit your email address to be notified when it is released.'; $string['hello'] = 'Hello World!'; $string['kialo:addinstance'] = 'Add a new Kialo Discussion'; $string['kialo:kialo_admin'] = 'Granted Admin rights in Kialo discussions'; diff --git a/mod_form.php b/mod_form.php index b06db65..6d63ac9 100644 --- a/mod_form.php +++ b/mod_form.php @@ -61,23 +61,6 @@ public function definition() { global $COURSE; $mform = $this->_form; - // Kialo does not support group mode yet. Show a warning if it is enabled, otherwise show an info. - if (groups_get_course_groupmode($COURSE) == NOGROUPS) { - $text = ''; - $text .= get_string("groupmode_off_info", "mod_kialo", [ - "grouphelpcenterlink" => GROUP_HELP_CENTER_LINK, - ]); - } else { - $text = ''; - $text .= get_string("groupmode_on_warning", "mod_kialo", [ - "grouphelpcenterlink" => GROUP_HELP_CENTER_LINK, - "pluginreleaseemailnotificationlink" => PLUGIN_RELEASE_EMAIL_NOTIFICATION_LINK, - ]); - } - $text = "
" . $text . "
"; - $mform->addElement("html", $text); // Adding the "general" fieldset, where all the common settings are shown. $mform->addElement('header', 'general', get_string('general', 'form'));