Anyone using after_restore_module hook?

Re: Anyone using after_restore_module hook?

by Andreas Grabs -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Translators
You also could use the "course_restored" event what will be fired after finishing the restore. Then you could use the given courseid to check whether your temp table exists or not. The temp table could use the courseid in its name to find it. The name must be unique just in your db session.