hooks
Hooks management.
Attributes
Functions:
get_hooks_handler()
Get the hook handler environment variable.
Returns:
| Type | Description |
|---|---|
EventHooks
|
hook handler |
set_hooks_handler(handler)
Set the hook handler environment variable.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
handler
|
EventHooks
|
hook handler |
required |
get_event_hooks()
unregister_all_hooks()
activate()
setup_hooks(session_id=None)
Setup the hooks for the given session.
If no session is specified, use the current one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session_id
|
str
|
Session. Defaults to None. |
None
|