X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/f02672c113813c37a659991ae984a2368e15b8db..ca9e45c3ba2ad852123aeb8783eed07ed73ce00c:/IkiWiki/Plugin/skeleton.pm.example?ds=inline diff --git a/IkiWiki/Plugin/skeleton.pm.example b/IkiWiki/Plugin/skeleton.pm.example index ec5a0c725..5fb391b0d 100644 --- a/IkiWiki/Plugin/skeleton.pm.example +++ b/IkiWiki/Plugin/skeleton.pm.example @@ -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); } @@ -183,10 +185,8 @@ sub canedit ($$$) { debug("skeleton plugin running in canedit"); } -sub canremove ($$$) { - my $page=shift; - my $cgi=shift; - my $session=shift; +sub canremove (@) { + my %params=@_; debug("skeleton plugin running in canremove"); } @@ -223,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"); }