Moodle plugins directory: Meta-course group synchronization | Moodle.org
Meta-course group synchronization
General plugins (Local) ::: local_metagroups
Maintained by Paul Holden
Automatically synchronize groups from child courses into meta-courses.
Latest release:
369 sites
175 downloads
39 fans
Current versions available: 3
Meta-course functionality in Moodle currently lacks the ability to synchronize groups from child courses in to a meta-course. This plugin implements this functionality by listening for relevant events related to groups.
After installing the plugin, any amendments to groups (add, update and delete) and their membership (add or remove users) from child courses will be automatically reflected in the linked meta-course.
See the project readme file for the most up to date instructions.
Supports Moodle version 4.1 onwards (up to and including 4.4).
The latest plugin release is 4.4 (22 April 2024):
- Support for Moodle 4.4
- Raised minimum requirement to Moodle 4.1
Contributors
Paul Holden (Lead maintainer)
Please login to view contributors details and/or to contact them
When having the same name for groups in two or more child courses, the plugin creates the same number of duplicate groups in the meta-course instead of using just one.
Example:
- course A has group "org_es"
- course B has group "org_es"
- course C is meta-linked to courses A and B
- two groups "org_es" are created in course C (one with course A students, the other with course B students) instead of just one group "org_es" (with both course A and course B students)
Also, it doesn't matter if group "org_es" was already created in course C. Three groups remain: one with course A students, another one with course B students and the one already created in course C.
Again, maybe this is the expected behavior.
That is the current behaviour, yes. If you take a look at the group_created event observer, you'll see that it currently matches on the 'idnumber' property of the group:
https://github.com/paulholden/moodle-local_metagroups/blob/master/classes/observers.php#L46-53
Perhaps a configuration option to match on group name could be added..?
I figured that this error is caused by this line in the script.
require_once (__DIR__ . '/../../../config.php');
moodle, is working just fine. So, I am not sure why it is the script is giving me this error.
any idea why, this is happening.?
Although the plugin was designed for Moodle 2.6, it should continue to work fine in later versions - please let me know if not!