MetaCleaner - Moodle Plugin
MetaCleaner is a Moodle plugin designed to manage and clean up Meta Link enrollments for courses whose end date has passed. It allows administrators to disable, delete, or automatically reactivate Meta Link enrollments and associated users based on configurable settings.
Features
- Disable Meta Link Enrollments: Disables Meta Link enrollments for expired courses without deleting them.
- Delete Meta Link Enrollments and Associated Users: Deletes Meta Link enrollments for expired courses and removes all associated users.
- Reactivate Meta Link Enrollments: Automatically reactivates disabled Meta Link enrollments if the main course's end date is removed or extended.
- Custom Configuration: Administrators can choose whether to disable, delete, or reactivate Meta Link enrollments via plugin settings.
- Scheduled Tasks: The plugin automatically runs scheduled tasks to manage Meta Link enrollments for expired courses.
- Pagination Limit: You can now customize the number of courses shown per page on the preview page, with a default of 10 courses per page. This can be configured in the plugin settings.
Installation
- Upload the plugin to the
local/metacleaner folder in your Moodle installation.
- Go to the Moodle Admin Panel and run the database update for the plugin.
- Navigate to Site Administration > Plugins > Local Plugins > MetaCleaner and configure the settings.
Configuration
After installation, you can configure the plugin settings in Moodle's admin interface:
- Enable Plugin Functionality: You can enable or disable the plugin by checking the "Enable MetaCleaner functionality" checkbox.
- Action for Meta Link Enrollments: Choose whether Meta Link enrollments should be disabled, deleted, or reactivated when the course's end date has passed.
- Preview Limit per Page: Set the limit for how many courses are displayed per page on the preview page (default is 10). You can adjust this setting based on your needs.
Usage
The plugin runs scheduled tasks that automatically manage Meta Link enrollments for expired courses. You can control the execution of these tasks via Moodle's cron jobs or manually via the admin interface.
Language Files
The plugin currently supports English and German. All messages are pulled from the language file configured for your Moodle installation.
Developer
Sadik Mert - Developer and maintainer of the plugin.
Email: sadikmert@hotmail.de
GitHub: https://github.com/SadikUX
License
MetaCleaner is an open-source plugin released under the GNU General Public License v3.
Contributing
Contributions are welcome! Fork the repository, create a branch, and submit a pull request. Please make sure to test your changes thoroughly and include relevant tests.