Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-28273 waring that removing user from cohorts may unenrol from cou…

…rses
  • Loading branch information...
commit c43a4beda87fa491293d8e477b666afa6fbeb487 1 parent 74275cf
@skodak skodak authored samhemelryk committed
Showing with 3 additions and 0 deletions.
  1. +2 −0  cohort/assign.php
  2. +1 −0  lang/en/cohort.php
View
2  cohort/assign.php
@@ -62,6 +62,8 @@
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('assignto', 'cohort', format_string($cohort->name)));
+echo $OUTPUT->notification(get_string('removeuserwarning', 'core_cohort'));
+
// Get the user_selector we will need.
$potentialuserselector = new cohort_candidate_selector('addselect', array('cohortid'=>$cohort->id));
$existinguserselector = new cohort_existing_selector('removeselect', array('cohortid'=>$cohort->id));
View
1  lang/en/cohort.php
@@ -49,4 +49,5 @@
$string['nocomponent'] = 'Created manually';
$string['potusers'] = 'Potential users';
$string['potusersmatching'] = 'Potential matching users';
+$string['removeuserwarning'] = 'Removing users from a cohort may result in unenrolling of users from multiple courses which includes deleting of user settings, grades, group membership and other user information from affected courses.';
$string['selectfromcohort'] = 'Select members from cohort';
Please sign in to comment.
Something went wrong with that request. Please try again.