Document ABORT constant as possible return value from hook
This feature was introduced way back in commit add31004
.
This commit is contained in:
parent
6850ed22be
commit
9cda968d53
1 changed files with 3 additions and 9 deletions
|
@ -114,15 +114,9 @@ cart, re-evaluate your assumptions when upgrading!
|
|||
|
||||
Hooks SHOULD NOT prompt for input or execute programs that do so.
|
||||
|
||||
A plugin that exists only for its hooks, MUST still provide a C<command> method.
|
||||
The suggested implementation for a no-op C<command> method is:
|
||||
|
||||
sub command {
|
||||
return NEXT;
|
||||
}
|
||||
|
||||
Hooks are called as class methods. The return value is ignored. Hooks MUST NOT
|
||||
interfere with the transaction flow (e.g. abort it).
|
||||
Hooks are called as class methods. The return value MUST be either C<ABORT>,
|
||||
which causes the ongoing transaction to be aborted, or a non-reference, which
|
||||
will be ignored.
|
||||
|
||||
The following hooks are available, with their respective arguments:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue