code: def trigger_hook(self, __name, *args, **kwargs):
          ''' Trigger a hook and return a list of results. '''
          return [hook(*args, **kwargs) for hook in self._hooks[__name][:]f trigger_hook(self, __name, *args, **kwargs):
          ''' Trigger a hook and return a list of results. '''
          return [hook(*args, **kwargs) for hook in self._hooks[__name][:]]
docs: Trigger a hook and return a list of results.