Deleting a module from course

Deleting a module from course

by Jimmy Lion -
Number of replies: 0

Hello everyone!

We are working on an activity plugin (mod). When adding a new instance of our activity, we also add two quiz instances internally and link them to our plugin. Now when our activity is deleted, we also want to delete the two linked quiz instances. However, as the deletion is done async (setting 'deletioninprogress' flag), it takes 1 min (or whatever the cron interval is) to fire the module_delete_instance() method where we delete the quiz instances.


Is there any method / event which is fired when the delete button on a activity is pressed (i.e. immediately)?


Thank you for any ideas!

Average of ratings: -