Moodle Plugins directory: Course Archiving | Moodle.org

Course Archiving
Blocks ::: block_eledia_course_archiving
Maintained by
Benjamin Wolf
This plugin archives or delete courses from chosen categories depending on their start date.
Latest release:
81 sites
44 downloads
13 fans
Current versions available: 8
The plugin is developed to archive courses once a term an remove the archived courses from the term before. The Process of archiving has to be started manually and has a confirmation form before it begins with any changes. The timespan in days, of the past term, can be configured within the plugin configuration.
Archiving means the course will be set invisible, moved to the configured archive category and all student users will be unenroled.
The same process deletes old courses in the archive category. The old courses will be deleted if there course begin is before the chosen timespan.
NOTE: In Github we use an empty master branch. The different plugin versions can be found in special branches for each Moodle version.
Contributors
Benjamin Wolf (Lead maintainer)
Please login to view contributors details and/or to contact them
Thanks for sharing this. Its installed fine here on 2.5. You may want to
include 2.6 too.
ps: I tried to configure and then see the block but i couldn't see anything
there yet, perhaps i missed a step somewhere?
For us, we consider an Archive of a course to be a snapshot in time and is usually done at the end of a course. Because it's a snapshot in time, it needs to contain all of the students. Once the students are removed, we would consider it just a backup and not an archive. Do you think you might be able to add an option to KEEP students enrolled in the course?
Thanks!
Are you going to release also the 2.8 version? is it supported? Thanks in advance!
Thanks for your feedback.
When you turn editing on on the front page, you should find it in the dropdown menü to "Add a block" under the name "Course Archiving".
There are no dependencies to other plug-ins.
In my config.php, the prefix of tables isn't mdl_ I have: $CFG->prefix = 'mdlvn_';
In some lines of the code you have: $sql = 'SELECT * FROM mdl_course. It causes the error: Table '....mdl_course' doesn't exist
Is there a chance to change the code to workaround this issue? THANK you.
When confirm Archiving and the number of course to be archieved and / or to be deleted is zero say something like: Nothing to delete or archive
I also added a text string for the case that both lists(archive and delete) are empty.
You can find it in the new version uploaded today or the git branches for 31 and 32.