]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/pagecount.pm
* Add getopt hook type, this allows plugins to add new command-line options.
[git.ikiwiki.info.git] / IkiWiki / Plugin / pagecount.pm
index 865ab4c39d7471154e1185647e962d004bd826ea..8a1376e09a022fb7be70ab3421a07693613dfa83 100644 (file)
@@ -4,9 +4,11 @@ package IkiWiki::Plugin::pagecount;
 
 use warnings;
 use strict;
 
 use warnings;
 use strict;
+use IkiWiki;
 
 sub import { #{{{
 
 sub import { #{{{
-       IkiWiki::register_plugin("preprocess", "pagecount", \&preprocess);
+       IkiWiki::hook(type => "preprocess", id => "pagecount", 
+               call => \&preprocess);
 } # }}}
 
 sub preprocess (@) { #{{{
 } # }}}
 
 sub preprocess (@) { #{{{