def register(self, name, signal=None):

        if signal:
            if not isinstance(signal, Signal):
                raise TypeError("Signal {0} is not of type "
                    "django.dispatch.dispatcher.Signal!".format(name))
            if 'content' not in signal.providing_args:
                raise TypeError("Signal {0} does not provide a 'content' "
                    "parameter!".format(name))
        else:
            signal = Signal(providing_args=['content', 'context'])

        self._registry[name] = signal
        return signal
Register a new template hook or override an existing.
dataset/ETHPy150Open weluse/django-templatehooks/templatehooks/registry.py/HookRegistry.register