Skip to content

Commit

Permalink
MDL-28273 waring that removing user from cohorts may unenrol from cou…
Browse files Browse the repository at this point in the history
…rses
  • Loading branch information
skodak authored and Sam Hemelryk committed Jul 12, 2011
1 parent 74275cf commit c43a4be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cohort/assign.php
Expand Up @@ -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));
Expand Down
1 change: 1 addition & 0 deletions lang/en/cohort.php
Expand Up @@ -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';

0 comments on commit c43a4be

Please sign in to comment.