Your Moodle version

General plugins (Local): Meta-course group synchronization

local_metagroups
Maintained by Picture of Paul Holden Paul Holden
Automatically synchronize groups from child courses into meta-courses.

Meta-course functionality in Moodle currently lacks the ability to synchronize groups from child courses in to a meta-course; this plugin overcomes this limitation, by listening for group-related events in child courses and updating meta-course groups and group enrolments automatically.

Installation instructions can found in the project readme file.

Contributors

Picture of Paul Holden
Paul Holden (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • MD shot of me from his iphone4
    Wed, Feb 12, 2014, 3:15 PM
    This looks really useful unfortunately i didn't test it completely. Installation and code seemed fine smile
  • Picture of Nadav Kavalerchik
    Wed, Feb 12, 2014, 5:08 PM
    Beautiful! I was almost about to code it myself. Thank you smile
  • Picture of Salvador Banderas Rovira
    Thu, Apr 10, 2014, 8:58 PM
    Tested in Moodle 2.6.2+ (Build: 20140403) and working perfectly. I was propagating all the groups "manually" once a day with a script but something like this is what I was really looking for. Thank you!
  • Picture of Salvador Banderas Rovira
    Mon, Apr 14, 2014, 8:01 PM
    Talked too soon. I found something that could be an expected behavior, but it represents a major problem for the organization I work for.

    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.
  • Picture of Paul Holden
    Wed, Apr 23, 2014, 4:27 PM
    Hi Salvador,

    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..?
  • Picture of Ahmad Faridi
    Sat, Jul 5, 2014, 4:59 PM
    Hi guys, I followed the installation instruction as specified in the read me file. But, when i went to the part where i had to run the sync.php script, it is giving me database connection failed error.

    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.?
Please login to post comments