aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/attachment.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-25 18:05:55 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-25 18:05:55 -0400
commit1f8b0460c309c54cfbfe4152bbc195a1756cbda5 (patch)
treea8a032052a49e318afcbcea7795c4342f83a72a5 /IkiWiki/Plugin/attachment.pm
parentcf6c2f142fdcba4316f616bad5aaa88c6df6031e (diff)
downloadikiwiki-1f8b0460c309c54cfbfe4152bbc195a1756cbda5.tar
ikiwiki-1f8b0460c309c54cfbfe4152bbc195a1756cbda5.tar.gz
added getsetup hooks for all plugins up to recentchanges
Diffstat (limited to 'IkiWiki/Plugin/attachment.pm')
-rw-r--r--IkiWiki/Plugin/attachment.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/attachment.pm b/IkiWiki/Plugin/attachment.pm
index 9dbc66020..8fa330e6d 100644
--- a/IkiWiki/Plugin/attachment.pm
+++ b/IkiWiki/Plugin/attachment.pm
@@ -6,11 +6,24 @@ use strict;
use IkiWiki 2.00;
sub import { #{{{
+ hook(type => "getsetup", id => "attachment", call => \&getsetup);
hook(type => "checkconfig", id => "attachment", call => \&checkconfig);
hook(type => "formbuilder_setup", id => "attachment", call => \&formbuilder_setup);
hook(type => "formbuilder", id => "attachment", call => \&formbuilder);
} # }}}
+sub getsetup () { #{{{
+ return
+ => {
+ type => "string",
+ default => "",
+ example => "clamdscan -",
+ description => "virus checker program (reads STDIN, returns nonzero if virus found)",
+ safe => 0, # executed
+ rebuild => 0,
+ },
+} #}}}
+
sub check_canattach ($$;$) { #{{{
my $session=shift;
my $dest=shift; # where it's going to be put, under the srcdir