EQ-1583 Moodle 2.7 Event APIs #33

Replace deprecated APIs