diff options
author | www-data <www-data@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-05-03 20:43:55 +0000 |
---|---|---|
committer | www-data <www-data@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-05-03 20:43:55 +0000 |
commit | 3900abf3143912bce58e5f114c5693cf0fc3c3a5 (patch) | |
tree | 97fc35c0bdf9b1c6b79315b075ce859b58139807 /doc | |
parent | 1478bab0cdf13b0a1ed09e5247bada907d245a47 (diff) |
web commit by joey
Diffstat (limited to 'doc')
-rw-r--r-- | doc/plugins/write.mdwn | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index 165627f99..db1badb7c 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -37,15 +37,22 @@ page in place of the directive. Beyond PreProcessorDirectives, Other types of hooks that can be used by plugins include: +### checkconfig + + IkiWiki::hook(type => "delete", id => "foo", call => \&checkconfig); + +This is useful if the plugin needs to check for, or modify ikiwiki's configuration. It's called early in the ikiwiki startup process. It's ok for +the function to call IkiWiki::error if something isn't configured right. + ### delete - IkiWiki::hook(type => "delete", id => "foo", call => \&deletion); + IkiWiki::hook(type => "delete", id => "foo", call => \&dele); Each time a page or pages is removed from the wiki, the referenced function is called, and passed the names of the source files that were removed. ### render - IkiWiki::hook(type => "render", id => "foo", call => \&update); + IkiWiki::hook(type => "render", id => "foo", call => \&render); Each time ikiwiki renders a change or addition (but not deletion) of a page to the wiki, the referenced function is called, and passed the name of the source file that was rendered. |