change plugin interface to use named parameters for flexability
[ikiwiki.git] / IkiWiki / Plugin / pagecount.pm
index fc69e449bb2612ee6afb73f95b4d9977448afbb5..8a1376e09a022fb7be70ab3421a07693613dfa83 100644 (file)
@@ -7,7 +7,8 @@ use strict;
 use IkiWiki;
 
 sub import { #{{{
-       IkiWiki::register_plugin("preprocess", "pagecount", \&preprocess);
+       IkiWiki::hook(type => "preprocess", id => "pagecount", 
+               call => \&preprocess);
 } # }}}
 
 sub preprocess (@) { #{{{