Updated docs for new pad hooks (add, edit, remove)

This commit is contained in:
d-a-n 2012-10-02 22:10:18 +03:00
parent 3578e36616
commit 07c33c77c4
1 changed files with 28 additions and 0 deletions

View File

@ -64,6 +64,34 @@ This hook gets called upon the rendering of an ejs template block. For any speci
Have a look at `src/templates/pad.html` and `src/templates/timeslider.html` to see which blocks are available.
## padCreated
Called from: src/node/db/Pad.js
1. pad - the pad instance
This hook gets called when a new pad was created.
## padLoaded
Called from: src/node/db/Pad.js
1. pad - the pad instance
This hook gets called when an pad was loaded.
## padUpdated
Called from: src/node/db/Pad.js
1. pad - the pad instance
This hook gets called when an existing pad was updated.
## padRemoved
Called from: src/node/db/Pad.js
1. pad - the pad instance
This hook gets called when an existing pad was removed/deleted.
## socketio
Called from: src/node/hooks/express/socketio.js