summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/skeleton.pm.example
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-01-27 00:00:00 +0100
committerintrigeri <intrigeri@boum.org>2009-01-27 00:00:00 +0100
commit03ab2623194009bf3cb82747c59dbf565b89e7bf (patch)
treec562ebaad239164b566d9ff7aa127db69a2cfa8d /IkiWiki/Plugin/skeleton.pm.example
parent8915d2553c056304bef2fd77b8fc03d99a49e2a9 (diff)
revert renamepage's hook original name
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki/Plugin/skeleton.pm.example')
-rw-r--r--IkiWiki/Plugin/skeleton.pm.example14
1 files changed, 14 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/skeleton.pm.example b/IkiWiki/Plugin/skeleton.pm.example
index 6a97fb2f2..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);
}
@@ -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");
}