method

add_hook

add_hook(event, &block)
public

To be called via the API to register a hooks and corresponding block that will be called to handle the hook