summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authord-a-n <in@db.to>2012-10-02 22:10:18 +0300
committerd-a-n <in@db.to>2012-10-02 22:10:18 +0300
commit07c33c77c4b41a3181064beacc407565738c4929 (patch)
tree6e0cc107d61d8ee8bfab684f0fecd21ad403c262 /doc
parent3578e36616f8882827eb4de160e703fd74becec7 (diff)
downloadetherpad-lite-07c33c77c4b41a3181064beacc407565738c4929.zip
Updated docs for new pad hooks (add, edit, remove)
Diffstat (limited to 'doc')
-rw-r--r--doc/api/hooks_server-side.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/api/hooks_server-side.md b/doc/api/hooks_server-side.md
index 06ec7374..be5564a6 100644
--- a/doc/api/hooks_server-side.md
+++ b/doc/api/hooks_server-side.md
@@ -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