[pmwiki-users] How can I add an "On Save" function

5ko at 5ko.fr 5ko at 5ko.fr
Tue Aug 13 03:07:20 CDT 2013


Lars Eighner writes:
> I want to add a function to be run on save and I want to do it the right way
> without messing with core scripts.
>
> That's it: how do I hook to save?

You insert the name of your function into the $EditFunctions array, see
   http://www.pmwiki.org/wiki/PmWiki/EditVariables#EditFunctions

and as a simple example the recipe
   http://www.pmwiki.org/wiki/Cookbook/DeltaBytesRecentChanges

Petko



More information about the pmwiki-users mailing list