Skip to content

Commit

Permalink
PM-46185 Remove group mode warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mst-kialo committed Aug 5, 2024
1 parent 7b0f3d2 commit 7e576f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
2 changes: 0 additions & 2 deletions lang/en/kialo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = '<b>Please note that Moodle groups are currently <u>not</u> automatically supported.</b> (<a href="{$a->grouphelpcenterlink}">More info</a>)';
$string['groupmode_on_warning'] = '<b>Moodle groups are currently <u>not</u> automatically supported.</b> If you use the Kialo Moodle Plugin with a course that has multiple groups, <b>all</b> groups will find themselves in the <b>same</b> Kialo discussion.<br/><br/>To manually set up Kialo discussions for each of your groups, please follow the instructions in our <a href="{$a->grouphelpcenterlink}">help center</a>.<br/><br/>We will release automatic Moodle groups support in Q1 2024. <a href="{$a->pluginreleaseemailnotificationlink}">Submit your email address</a> 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';
Expand Down
17 changes: 0 additions & 17 deletions mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<i class="icon fa fa-info-circle text-info fa-fw"
title="Information" role="img" aria-label="Information"></i>';
$text .= get_string("groupmode_off_info", "mod_kialo", [
"grouphelpcenterlink" => GROUP_HELP_CENTER_LINK,
]);
} else {
$text = '<i class="icon fa fa-exclamation-circle text-danger fa-fw"
title="Warning" role="img" aria-label="Warning"></i>';
$text .= get_string("groupmode_on_warning", "mod_kialo", [
"grouphelpcenterlink" => GROUP_HELP_CENTER_LINK,
"pluginreleaseemailnotificationlink" => PLUGIN_RELEASE_EMAIL_NOTIFICATION_LINK,
]);
}
$text = "<div class='alert alert-info'>" . $text . "</div>";
$mform->addElement("html", $text);

// Adding the "general" fieldset, where all the common settings are shown.
$mform->addElement('header', 'general', get_string('general', 'form'));
Expand Down

0 comments on commit 7e576f4

Please sign in to comment.