Commit d1b002de authored by Robert Lyon's avatar Robert Lyon

Bug 1855333: Create admin section for custom group default settings

Allow the default settings for a new group to be
different to the code's default settings. The site
administrator can make these changes in the admin
section for groups. Any new group created will have
these settings unless the role doesn't allow for
their use. Then the default value will be used.


Change-Id: I358da171a353f53b116d344a9300529bbfb1a614
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 8a1d0196
This diff is collapsed.
......@@ -1518,5 +1518,12 @@ $string['userdeletiondeniedsuccessful'] = 'Request denied successfully.';
$string['userdeletiondeniedunsuccessful'] = 'The attempted user account deletion denial failed.';
$string['consented'] = 'Consented';
$string['groupid'] = 'Group ID';
$string['blocktypeupdatedsuccess'] = 'Updated blocktype sort order';
// Change group settings
$string['groupsettings'] = 'Group settings';
$string['introtext'] = 'You can change the default settings that are used when a new group is created. Some settings are only available to people who have a certain role. The options that are not available to them are ignored when they create a new group, and the default value is used instead.';
$string['savedgroupconfigsuccessfully'] = 'Saved default group settings.';
$string['defaultreset'] = 'Reset to default';
$string['defaultresetlabel'] = 'Reset';
$string['defaultresetdesc'] = 'Reset all of the above options to their default values.';
......@@ -395,6 +395,7 @@ $string['allowsubmissions'] = 'Allow submissions';
$string['allowssubmissionsdescription1'] = "Members can submit pages to the group that are then locked. These pages cannot be edited until they are released by a group tutor or administrator.";
$string['allowssubmissionsdescription'] = 'Members can submit pages to the group.';
$string['allowsarchives'] = 'Allow archiving of submissions';
$string['allowsarchiveserror'] = 'You can only allow archiving if submissions are allowed.';
$string['allowsarchivesdescription'] = 'Pages / collections are archived as zipped Leap2A files during the submission release process.';
// Group reports
......@@ -2408,6 +2408,12 @@ function admin_nav() {
'path' => 'managegroups/archives',
'url' => 'admin/groups/archives.php',
'title' => get_string('archivedsubmissions', 'admin'),
'weight' => 27,
'managegroups/settings' => array(
'path' => 'managegroups/settings',
'url' => 'admin/groups/settings.php',
'title' => get_string('groupsettings', 'admin'),
'weight' => 25,
'managegroups/uploadcsv' => array(
{include file="header.tpl"}
<p class="lead">{str tag=introtext section=admin}</p>
<div class="card card-body">
{include file="footer.tpl"}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment