Skip to main content
Version: master

Groups API

Draft document
This documentation is currently in-progress. You can help by contributing edits to this page.

The Groups and Groupings features of Moodle are defined as a course-level API.

A course may have any number of groups, which contain any number of group members, and which are placed into any number of groupings.

The main public API includes functions found in lib/grouplib.php.

warning

Please note that plugins should only use the APIs defined in lib/grouplib.php.

Moodle core may use other functions defined in group/lib.php

Database layout