Issue #48 moodle hook