diff options
Diffstat (limited to 'doc/api/pluginfw.md')
-rw-r--r-- | doc/api/pluginfw.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/pluginfw.md b/doc/api/pluginfw.md index 2189c74c..7e0499c3 100644 --- a/doc/api/pluginfw.md +++ b/doc/api/pluginfw.md @@ -3,7 +3,7 @@ ## plugins.update `require("ep_etherpad-lite/static/js/plugingfw/plugins").update()` will use npm to list all installed modules and read their ep.json files, registering the contained hooks. -A hook registration is a pairs of a hook name and a function reference (filename for require() plus function name) +A hook registration is a pair of a hook name and a function reference (filename for require() plus function name) ## hooks.callAll `require("ep_etherpad-lite/static/js/plugingfw/hooks").callAll("hook_name", {argname:value})` will call all hook functions registered for `hook_name` with `{argname:value}`. |