]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/skeleton.pm.example
revert renamepage's hook original name
[git.ikiwiki.info.git] / IkiWiki / Plugin / skeleton.pm.example
index 6a97fb2f2b7cf4ade487f853886d720272a8bcb0..5fb391b0ddf2768b076c06c9a7aca9b2e0d58c5c 100644 (file)
@@ -36,6 +36,8 @@ sub import {
        hook(type => "editcontent", id => "skeleton", call => \&editcontent);
        hook(type => "formbuilder_setup", id => "skeleton", call => \&formbuilder_setup);
        hook(type => "formbuilder", id => "skeleton", call => \&formbuilder);
+       hook(type => "renamepage", id => "skeleton", call => \&renamepage);
+       hook(type => "rename", id => "skeleton", call => \&renamepages);
        hook(type => "savestate", id => "skeleton", call => \&savestate);
 }
 
@@ -221,6 +223,18 @@ sub formbuilder (@) {
        debug("skeleton plugin running in formbuilder");
 }
 
+sub renamepage (@) {
+       my %params=@_;
+       
+       debug("skeleton plugin running in renamepage");
+}
+
+sub renamepages ($$$) {
+       my ($torename, $cgi, $session) = (shift, shift, shift);
+       
+       debug("skeleton plugin running in rename");
+}
+
 sub savestate () {
        debug("skeleton plugin running in savestate");
 }