code: def register_hooks(self, field):
          
          for hook, subhooks in field.register_hooks():
              self.hooks[hook].append(field)
              self.subhooks[hook] |= set(subhooks)
docs: Register a field on its target hooks.