diff options
author | Joey Hess <joey@kitenet.net> | 2010-07-14 14:47:29 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-07-14 14:47:29 -0400 |
commit | 7a04e2d4161d2f23f92bc87e23349354c06e820b (patch) | |
tree | 3c5e430e4720b903d8e7a93a35ac45eabc097a49 /IkiWiki | |
parent | d420a4bdecddcc297eebb233dae8d69ba45c8e1a (diff) | |
download | ikiwiki-7a04e2d4161d2f23f92bc87e23349354c06e820b.tar ikiwiki-7a04e2d4161d2f23f92bc87e23349354c06e820b.tar.gz |
add getsetup hook
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/filecheck.pm | 13 |
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; |