From: Joey Hess Date: Wed, 14 Jul 2010 18:47:29 +0000 (-0400) Subject: add getsetup hook X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/7a04e2d4161d2f23f92bc87e23349354c06e820b add getsetup hook --- 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;