mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
Changed some Plugin hooks for better handling:
* json.action-pre-call => json.before-{actionname}
* json.action-post-call => json.after-{actionname}
This commit is contained in:
parent
4397eaed86
commit
477158e54a
6 changed files with 83 additions and 92 deletions
|
|
@ -240,6 +240,25 @@ $Plugin->addHook('hook.name', 'functionName');
|
|||
\RainLoop\Model\Account $oAccount
|
||||
array &$aCache
|
||||
|
||||
## Json service actions
|
||||
Called by RainLoop\ServiceActions::ServiceJson()
|
||||
|
||||
### json.before-{actionname}
|
||||
params: none
|
||||
|
||||
### json.after-{actionname}
|
||||
params:
|
||||
array &$aResponse
|
||||
|
||||
### json.action-post-call
|
||||
Obsolete, use json.after-{actionname}
|
||||
|
||||
### json.action-pre-call
|
||||
Obsolete, use json.before-{actionname}
|
||||
|
||||
### filter.json-response
|
||||
Obsolete, use json.after-{actionname}
|
||||
|
||||
## Others
|
||||
|
||||
### filter.account
|
||||
|
|
@ -285,11 +304,6 @@ $Plugin->addHook('hook.name', 'functionName');
|
|||
params:
|
||||
array &$aPaths
|
||||
|
||||
### filter.json-response
|
||||
params:
|
||||
string $sAction
|
||||
array &$aResponseItem
|
||||
|
||||
### filter.message-html
|
||||
params:
|
||||
\RainLoop\Model\Account $oAccount
|
||||
|
|
@ -368,16 +382,7 @@ $Plugin->addHook('hook.name', 'functionName');
|
|||
|
||||
### filter.upload-response
|
||||
params:
|
||||
array &$aResponseItem
|
||||
|
||||
### json.action-post-call
|
||||
params:
|
||||
string $sAction
|
||||
array &$aResponseItem
|
||||
|
||||
### json.action-pre-call
|
||||
params:
|
||||
string $sAction
|
||||
array &$aResponse
|
||||
|
||||
### json.attachments
|
||||
params:
|
||||
|
|
@ -413,7 +418,7 @@ $Plugin->addHook('hook.name', 'functionName');
|
|||
### main.default-response
|
||||
params:
|
||||
string $sActionName
|
||||
array &$aResponseItem
|
||||
array &$aResponse
|
||||
|
||||
### main.default-response-data
|
||||
params:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue