From a8d9a3868d9e2d2319f62bf19e9906947fae726a Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 6 May 2014 21:22:03 +0100 Subject: [PATCH] docs for new hook --- doc/api/hooks_server-side.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/api/hooks_server-side.md b/doc/api/hooks_server-side.md index 0bde2aad..0c251c3e 100644 --- a/doc/api/hooks_server-side.md +++ b/doc/api/hooks_server-side.md @@ -247,3 +247,19 @@ Things in context: This hook will allow a plug-in developer to re-write each line when exporting to HTML. +## exportFileName +Called from src/node/handler/ExportHandler.js + +Things in context: + +1. padId + +This hook will allow a plug-in developer to modify the file name of an exported pad. This is useful if you want to export a pad under another name and/or hide the padId under export. Note that the doctype or file extension cannot be modified for security reasons. + +Example: + +``` +exports.exportFileName = function(hook, padId){ + return "newFileName"+padId; +} +```