-
Improvement
-
Resolution: Fixed
-
Minor
-
5.0
-
MOODLE_500_STABLE
-
MOODLE_500_STABLE
-
mdl-83479-restore-hooks
-
-
-
Problem statement:
We would like to be able add extra processing of course content after restoring or copying.
Proposed solution:
The following changes can be made to the code.
- A hook to enable plugins to add extra settings to the restore task. This would be placed inside restore_root_task::define_settings()
- A hook to enable plugins to add extra fields to the copy course form. This would be done inside the copy_form class.
- An adjustment to add the restore plan settings to the course restored event data. This would be done inside restore_plan::execute().
- A hook to enable extra work inside the asynchronous copy task. To be placed inside asynchronous_copy_task::execute().