[pmwiki-users] Hooking into Save and Preview?

Patrick R. Michaud pmichaud at pobox.com
Tue Aug 5 12:56:32 CDT 2008

On Tue, Aug 05, 2008 at 12:20:57PM +0200, juman wrote:
> I want to hook in to the Save and Preview function to catch the page
> that will be saved (the wikitext) calculate some stats that is to be
> shown with the Preview and Save (but not normal view). I don't want to
> modify the page but just give some extra information when the page is
> saved or previewed. 
> Any examples or hints on how this could be implemented?

You probably want to add a function to the $EditFunctions array
that calculates the stats you're interested in and sets some
page variables for display.


More information about the pmwiki-users mailing list