]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/mirrorlist.pm
added getsetup hooks for all plugins up to recentchanges
[ikiwiki.git] / IkiWiki / Plugin / mirrorlist.pm
index 3997e6fefcd31c15a8fa6df7e559a6ffdf84e863..c7630d81f0b60911fed26b32baba015e3ea9757c 100644 (file)
@@ -6,9 +6,21 @@ use strict;
 use IkiWiki 2.00;
 
 sub import { #{{{
+       hook(type => "getsetup", id => "mirrorlist", call => \&getsetup);
        hook(type => "pagetemplate", id => "mirrorlist", call => \&pagetemplate);
 } # }}}
 
+sub getsetup () { #{{{
+       return
+               mirrorlist => {
+                       type => "string",
+                       default => "",
+                       description => "list of mirrors",
+                       safe => 1,
+                       rebuild => 1,
+               },
+} #}}}
+
 sub pagetemplate (@) { #{{{
        my %params=@_;
         my $template=$params{template};