Hi Rodrigo,
I am a little confused by your answer. In my initial post I wrote that I already implemented the backup for my activities. Works no problem. What I want to do is add a backup step to the course backup for my activities, because users can make custom settings per course for all course activity modules.
But there is no hook for that as far as I can see! I tried to add a step to the backup_course_stask but this step does not get executed
protected function define_my_steps() {
//activity step
$this->add_step(new backup_myactivity_activity_structure_step('myactivity_structure', 'myactivity.xml'));
//add an additional step to the course backup task for the mod course settings
$tasks = $this->plan->get_tasks();
foreach($tasks as &$task) {
if($task instanceof backup_course_task) {
$task->add_step(new backup_course_ivs_settings_step('ivs_settings_structure', 'ivs_course_settings.xml'));
}
}
But this step does not get executed, also my debugger says it successfully added the step