local plugin that add metadata to course - backup

local plugin that add metadata to course - backup

by Raphael Goldman -
Number of replies: 1

Hi,


I have a local plugin that add some fields to a a course - describing the course.


How can I backup the fields of that course when restoring a course as a new course?

In my plugin I have a course object of the new course that has been created:

stdClass Object ( [courseid] => 17 [userid] => 2 [type] => course [target] => 2 [mode] => 10 [operation] => restore [samesite] => 1 )

I need the Id of the original course.

Thanks,

Raphael

Average of ratings: -
In reply to Raphael Goldman

Re: local plugin that add metadata to course - backup

by T W -

Anyone can help???

Thanks!