Overview
The Activity Archive plugin is a Moodle local plugin designed to automatically archive activity data when an activity’s ID number is removed. This allows institutions to preserve a record of activities that are being “deactivated” or removed from official curriculum tracking without deleting the actual activity from the course.
Features
- Automatic Archiving: The plugin listens to Moodle events. When it detects that an ID number has been removed from an activity, it automatically creates an archive record.
- Smart Language Detection: Determines the language of the activity based on availability restrictions groups (
lang.es,lang.en) or falls back to system defaults. - Integrated Report: Includes a built-in report accessible via Site Administration to view all archived activities in a sortable, styled table.
- Contextual Data: Captures key details including Activity Name, Module Type, Section Name, Instance ID, and obviously the ID Number that was removed.
- Readable Timestamps: Archives are stamped with a human-readable date.
Usage
The archiving process is fully automated:
- Setup: Ensure your activities have an ID number set in their “Common module settings”.
- Trigger: To archive an activity, edit the activity settings and clear/remove the ID number field. Save the changes.
- Result: The plugin detects the removal and creates a new record in the archive table.