moodle hooks added