Commit ffccbbc1 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Remove misleading & unnecessary message when deleting groups which have views shared to them

Signed-off-by: default avatarRichard Mansfield <>
parent 6a3ecf3a
......@@ -45,13 +45,6 @@ if (!$group) {
define('TITLE', get_string('deletespecifiedgroup', 'group', $group->name));
$views = count_records_sql(
FROM {view_access} a
WHERE = ?',
$form = pieform(array(
'name' => 'deletegroup',
'renderer' => 'div',
......@@ -68,7 +61,7 @@ $form = pieform(array(
$smarty = smarty();
$smarty->assign('subheading', TITLE);
$smarty->assign('message', $views ? get_string('groupconfirmdeletehasviews', 'group') : get_string('groupconfirmdelete', 'group'));
$smarty->assign('message', get_string('groupconfirmdelete', 'group'));
$smarty->assign('form', $form);
......@@ -144,7 +144,6 @@ $string['grouprequestmessage'] = '%s would like to join your group %s';
$string['grouprequestmessagereason'] = "%s would like to join your group %s. Their reason for wanting to join is:\n\n%s";
$string['cantdeletegroup'] = 'You cannot delete this group';
$string['groupconfirmdelete'] = 'Are you sure you wish to delete this group?';
$string['groupconfirmdeletehasviews'] = 'Are you sure you wish to delete this group? Some of your views use this group for access control, removing this group would mean that the members of that group would not have access to the views.';
$string['deletegroup'] = 'Group Deleted Successfully';
$string['allmygroups'] = 'All My Groups';
$string['groupsimin'] = 'Groups I\'m In';
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment