← Back

Activity Archive for Moodle™

Automatic archiving of activities when ID numbers are removed.

Version v1.0.0
Compatibility Moodle 4.1+
Status Active

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:

  1. Setup: Ensure your activities have an ID number set in their “Common module settings”.
  2. Trigger: To archive an activity, edit the activity settings and clear/remove the ID number field. Save the changes.
  3. Result: The plugin detects the removal and creates a new record in the archive table.