From ab75c0323bc584203a2b4a507c2a2012523354d0 Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 30 Jul 2006 00:20:11 +0000 Subject: * Add a run_hooks function for the common task of running all hooks of a given type. * Add a savestate hook. * Don't put blog post forms on pages if there's no cgiurl set. * Reformat front page. --- doc/plugins/write.mdwn | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/plugins') diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index 93c6d1d5c..025a242a6 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -157,6 +157,14 @@ called in turn, and passed a CGI object. The hook should examine the parameters, and if it will handle this CGI request, output a page and terminate the program. +## savestate + + IkiWiki::hook(type => "savestate", id => "foo", call => \&savestate); + +This hook is called wheneven ikiwiki normally saves its state, just before +the state is saved. The function can save other state, modify values before +they're saved, etc. + # Wiki configuration A plugin can access the wiki's configuration via the `%IkiWiki::config` -- cgit v1.2.3