I am working on a course format that displays course sections in tabs. To do so I store the section IDs shown for each tab as part of the course format options. Works fine so far.
But when backing up and restoring a course like that, the sections will have a different ID after restoration - and therefore will no longer match the stored section IDs for each tab.
So what I want to do is to replace the section ID of each section with a md5 value of it's content just before the course.xml file of the backup is written and while restoring the course I want to reverse this by replacing the md5 values with the corresponding IDs of the sections again.
There is a similar functionality for URLs that contain IDs - so I hope there might be some help for me as well?!
Is there a way of overriding the backup process from within the format plugin so this can be done?
I wonder if someone could point me to a solution for this issue?