public static function course_content_deleted(\core\event\course_content_deleted $event) {
        global $DB;
        // Delete all templates of given course.
        $DB->delete_records('feedback_template', array('course' => $event->objectid));
    }