]> scripts.mit.edu Git - www/ikiwiki.git/blobdiff - doc/plugins/write.mdwn
* Add a run_hooks function for the common task of running all hooks of a
[www/ikiwiki.git] / doc / plugins / write.mdwn
index 93c6d1d5cbb216975384bf904f54d80cb14e8c6f..025a242a63c4318888225dd9975e7e680f8194f4 100644 (file)
@@ -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`