Add path and path_natural sort orders
[ikiwiki.git] / IkiWiki / Plugin / skeleton.pm.example
index c3a3b0c01eabcb1001257a6f2b4e407fe184db3b..7974d5e5325f396a6bd90cc446e239bed9a0c44f 100644 (file)
@@ -41,6 +41,7 @@ sub import {
        hook(type => "rename", id => "skeleton", call => \&rename);
        hook(type => "savestate", id => "skeleton", call => \&savestate);
        hook(type => "genwrapper", id => "skeleton", call => \&genwrapper);
+       hook(type => "disable", id => "skeleton", call => \&disable);
 }
 
 sub getopt () {
@@ -72,7 +73,11 @@ sub refresh () {
 }
 
 sub needsbuild ($) {
+       my $needsbuild=shift;
+
        debug("skeleton plugin needsbuild");
+
+       return $needsbuild;
 }
 
 sub preprocess (@) {
@@ -254,4 +259,8 @@ sub genwrapper () {
        debug("skeleton plugin running in genwrapper");
 }
 
+sub disable () {
+       debug("skeleton plugin running in disable");
+}
+
 1