From 07c33c77c4b41a3181064beacc407565738c4929 Mon Sep 17 00:00:00 2001 From: d-a-n Date: Tue, 2 Oct 2012 22:10:18 +0300 Subject: [PATCH] Updated docs for new pad hooks (add, edit, remove) --- doc/api/hooks_server-side.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/doc/api/hooks_server-side.md b/doc/api/hooks_server-side.md index 06ec7374b..be5564a66 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