diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-25 18:05:55 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-25 18:05:55 -0400 |
commit | 1f8b0460c309c54cfbfe4152bbc195a1756cbda5 (patch) | |
tree | a8a032052a49e318afcbcea7795c4342f83a72a5 /IkiWiki/Plugin/attachment.pm | |
parent | cf6c2f142fdcba4316f616bad5aaa88c6df6031e (diff) | |
download | ikiwiki-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.pm | 13 |
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 |