Author: Petr Škoda
MDL-31437 add group sync option to enrol_cohort
This patch includes following changes and new features:
* Group sync in enrol_cohort plugin.
* Option for editing of role in existing cohort sync instance.
* Group memberships are now restored after enrolments.
* New enrol method for restore of protected group membership.
* New component callback 'restore_group_member' for restore of general plugin group membership.
* New component callback 'restore_role_assignment' for restore of general plugin role assignments.
* Implemented group membership protection in enrolment UI.
* Other minor fixes and cleanup.
Notes:
* The YUI base enrolment page is not reimplemented yet - see MDL-35618.
http://git.moodle.org/gw?p=moodle.git;a=commit;h=7881024ec4df4c888cd0d9fef0ff00493f37c2b9
http://github.com/moodle/moodle/commit/7881024ec4df4c888cd0d9fef0ff00493f37c2b9
+ 2.4 en [addgroup,enrol_cohort]
+ 2.4 en [assignrole,enrol_cohort]
+ 2.4 en [status,enrol_cohort]