Library of functions specific to course/modedit.php and course API functions. The course API function calling them are course/lib.php:create_module() and update_module(). This file has been created has an alternative solution to a full refactor of course/modedit.php in order to create the course API functions.

The purpose of this feature is to quickly remove all user related data from a course in order to make it available for a new semester. This feature can handle the removal of general course data like students, teachers, logs, events and groups as well as module specific data. Each module must be modified to take advantage of this new feature. The feature will also reset the start date of the course if necessary.