main/inc/lib/hook/
and are instanciated in the normal workflow. For example, in usermanager.lib.php
, we find that the UserManager::create_user()
method actually instanciates the HookCreateUser object and then calls one of its method:doWhenDeletingCourse
, doWhenDeletingSession
and doWhenDeletingUser
) that are not implemented as hooks yet but that should be in 2.0.