Wondering if anyone can tell me if it's possible to hook into the course restore process from a filter plugin? I've tried implementing classes in a backup/moodle2 directory in the filter folder, but they don't seem to work, so I think it might not even be possible. Here's the situation:
I've written a filter plugin called filter_check_available_complete that shows or hides DOM elements (i.e. parts of content in course module text areas) based on whether one or more course modules are either available to or have been completed by the currently logged-in user. It's pretty simple: it looks for a data-filter-check attribute on a HTML tag, and does its thing. So for instance:
<div data-filter-check=“show 123, 456, 789 complete”>This DIV will display when those CMs are complete</div>
<div data-filter-check=“hide 123, 456, 789 available”>This DIV will not display when those CMs are available</div>
It works great, except I want to be able hook into the restore process so those provided course module IDs (i.e. 123, 456, 789) map to the correct new course modules IDs in the restored course.
Any ideas would be appreciated, thanks!