docs: Clean up `padCreate`, `padUpdate` hook docs
parent
a27b400073
commit
a8c061154e
|
@ -204,15 +204,16 @@ Things in context:
|
||||||
This hook gets called when the access to the concrete pad is being checked.
|
This hook gets called when the access to the concrete pad is being checked.
|
||||||
Return `false` to deny access.
|
Return `false` to deny access.
|
||||||
|
|
||||||
## padCreate
|
## `padCreate`
|
||||||
Called from: src/node/db/Pad.js
|
|
||||||
|
|
||||||
Things in context:
|
Called from: `src/node/db/Pad.js`
|
||||||
|
|
||||||
1. pad - the pad instance
|
Called when a new pad is created.
|
||||||
2. author - the id of the author who created the pad
|
|
||||||
|
|
||||||
This hook gets called when a new pad was created.
|
Context properties:
|
||||||
|
|
||||||
|
* `pad`: The Pad object.
|
||||||
|
* `author`: The ID of the author who created the pad.
|
||||||
|
|
||||||
## `padLoad`
|
## `padLoad`
|
||||||
|
|
||||||
|
@ -224,17 +225,19 @@ Context properties:
|
||||||
|
|
||||||
* `pad`: The Pad object.
|
* `pad`: The Pad object.
|
||||||
|
|
||||||
## padUpdate
|
## `padUpdate`
|
||||||
Called from: src/node/db/Pad.js
|
|
||||||
|
|
||||||
Things in context:
|
Called from: `src/node/db/Pad.js`
|
||||||
|
|
||||||
1. pad - the pad instance
|
Called when an existing pad is updated.
|
||||||
2. author - the id of the author who updated the pad
|
|
||||||
3. revs - the index of the new revision
|
|
||||||
4. changeset - the changeset of this revision (see [Changeset Library](#index_changeset_library))
|
|
||||||
|
|
||||||
This hook gets called when an existing pad was updated.
|
Context properties:
|
||||||
|
|
||||||
|
* `pad`: The Pad object.
|
||||||
|
* `author`: The ID of the author who updated the pad.
|
||||||
|
* `revs`: The index of the new revision.
|
||||||
|
* `changeset`: The changeset of this revision (see [Changeset
|
||||||
|
Library](#index_changeset_library)).
|
||||||
|
|
||||||
## padCopy
|
## padCopy
|
||||||
Called from: src/node/db/Pad.js
|
Called from: src/node/db/Pad.js
|
||||||
|
|
Loading…
Reference in New Issue