]> sipb.mit.edu Git - ikiwiki.git/commitdiff
add getsetup hook
authorJoey Hess <joey@kitenet.net>
Wed, 14 Jul 2010 18:47:29 +0000 (14:47 -0400)
committerJoey Hess <joey@kitenet.net>
Wed, 14 Jul 2010 18:47:29 +0000 (14:47 -0400)
IkiWiki/Plugin/filecheck.pm

index 1549b82db75a9d5164c04b166a3d6d149bdb01dc..d00b6dfd3e0445fe243502929cfa92589e15a77c 100644 (file)
@@ -39,6 +39,19 @@ my %units=(          # size in bytes
        #   -- Joey
 );
 
        #   -- 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;
 
 sub parsesize ($) {
        my $size=shift;