EQ-1583 Moodle 2.7 event api #33
EQ-1583 Replace deprecated APIs #33