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));
    }
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));
    }
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 ) ) ; }
Observer for the even course_content_deleted - delete all course templates.

@param \core\event\course_content_deleted $event
Observer for the even course_content_deleted - delete all course templates .