change plugin interface to use named parameters for flexability
[ikiwiki.git] / IkiWiki / Plugin / brokenlinks.pm
index 9485da398f8417f8e81503d799149a1e83be197e..8b91391fe784d3cda973cb6a465cd199683ce4be 100644 (file)
@@ -4,9 +4,11 @@ package IkiWiki::Plugin::brokenlinks;
 
 use warnings;
 use strict;
+use IkiWiki;
 
 sub import { #{{{
-       IkiWiki::register_plugin("preprocess", "brokenlinks", \&preprocess);
+       IkiWiki::hook(type => "preprocess", id => "brokenlinks",
+               call => \&preprocess);
 } # }}}
 
 sub preprocess (@) { #{{{