Registers a trigger based on its type. This is done automatically with TriggerRegister.
Unregisters a trigger.