I've implemented moodle activity that automatically creates chat and discussion forum on its creation. When activity is deleted these two are deleted from event observers that handle course_module_deleted event. The problem is that these two deleted activities are still visible until page is reloaded, and I don't know how to reload it from the observer. I tried redirect and header, but it doesn't work from observer.
I hope someone has some idea how to fix this.
Thanks,
Zoran