summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/skeleton.pm.example
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-07-26 16:24:17 -0400
committerJoey Hess <joey@kitenet.net>2010-07-26 16:33:42 -0400
commitc401b6958af7e12c1c2c46f870691bfb0a998fd3 (patch)
treeea0d991a16d08022209bb71d9202f1e4127c849b /IkiWiki/Plugin/skeleton.pm.example
parentb300bc9650a40885cd8c6e0a646436539aed95c1 (diff)
Add new disable hook, allowing plugins to perform cleanup after they have been disabled.
Diffstat (limited to 'IkiWiki/Plugin/skeleton.pm.example')
-rw-r--r--IkiWiki/Plugin/skeleton.pm.example5
1 files changed, 5 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/skeleton.pm.example b/IkiWiki/Plugin/skeleton.pm.example
index c3a3b0c01..a57a2c8fe 100644
--- a/IkiWiki/Plugin/skeleton.pm.example
+++ b/IkiWiki/Plugin/skeleton.pm.example
@@ -41,6 +41,7 @@ sub import {
hook(type => "rename", id => "skeleton", call => \&rename);
hook(type => "savestate", id => "skeleton", call => \&savestate);
hook(type => "genwrapper", id => "skeleton", call => \&genwrapper);
+ hook(type => "disable", id => "skeleton", call => \&disable);
}
sub getopt () {
@@ -254,4 +255,8 @@ sub genwrapper () {
debug("skeleton plugin running in genwrapper");
}
+sub savestate () {
+ debug("skeleton plugin running in disable");
+}
+
1