From: Joey Hess Date: Wed, 14 Jul 2010 18:47:29 +0000 (-0400) Subject: add getsetup hook X-Git-Tag: 3.20100722~30 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/7a04e2d4161d2f23f92bc87e23349354c06e820b?hp=d420a4bdecddcc297eebb233dae8d69ba45c8e1a 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;