code: def register_all_hooks():
      
      global _all_hooks_registered
      if not _all_hooks_registered:
          logger.debug("Searching for hooks")
          hooks = list(get_app_submodules('auth_hooks'))
          logger.debug("Got %s hooks" % len(hooks))
          _all_hooks_registered = True
docs: Register all hooks found in 'auth_hooks' sub modules
      :return: