code: def trigger(self, name, *a, **ka):
          ''' Trigger a hook and return a list of results. '''
          hooks = self.hooks[name]
          if ka.pop('reversed', False): hooks = hooks[::-1]
          return [hook(*a, **ka) for hook in hooksf trigger(self, name, *a, **ka):
          ''' Trigger a hook and return a list of results. '''
          hooks = self.hooks[name]
          if ka.pop('reversed', False): hooks = hooks[::-1]
          return [hook(*a, **ka) for hook in hooks]
docs: Trigger a hook and return a list of results.