summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-07-14 14:47:29 -0400
committerJoey Hess <joey@kitenet.net>2010-07-14 14:47:29 -0400
commit7a04e2d4161d2f23f92bc87e23349354c06e820b (patch)
tree3c5e430e4720b903d8e7a93a35ac45eabc097a49 /IkiWiki/Plugin
parentd420a4bdecddcc297eebb233dae8d69ba45c8e1a (diff)
add getsetup hook
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/filecheck.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/filecheck.pm b/IkiWiki/Plugin/filecheck.pm
index 1549b82db..d00b6dfd3 100644
--- a/IkiWiki/Plugin/filecheck.pm
+++ b/IkiWiki/Plugin/filecheck.pm
@@ -39,6 +39,19 @@ my %units=( # size in bytes
# -- Joey
);
+sub import {
+ hook(type => "getsetup", id => "filecheck", call => \&getsetup);
+}
+
+sub getsetup () {
+ return
+ plugin => {
+ safe => 1,
+ rebuild => undef,
+ section => "misc",
+ },
+}
+
sub parsesize ($) {
my $size=shift;