MDL-28273 waring that removing user from cohorts may unenrol from courses
authorPetr Skoda <commits@skodak.org>
Sat, 9 Jul 2011 14:23:36 +0000 (16:23 +0200)
committerPetr Skoda <commits@skodak.org>
Sat, 9 Jul 2011 14:23:36 +0000 (16:23 +0200)
cohort/assign.php
lang/en/cohort.php

index adbc912..c979247 100644 (file)
@@ -62,6 +62,8 @@ $PAGE->set_heading($COURSE->fullname);
 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));
index a7786d0..6d57e80 100644 (file)
@@ -49,4 +49,5 @@ $string['name'] = 'Name';
 $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';