summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-12-30 22:55:04 +0100
committerintrigeri <intrigeri@boum.org>2008-12-30 22:55:04 +0100
commit5738f30a2954705f7954e7fb99205f5a08d35ccb (patch)
treef42c9816f0df6622bb04ad5d78ae69b19cf9cce6 /doc
parentc01485ae1ad751ac87eb3cfa392f6d276d5b1157 (diff)
the rename hook can now change the list of pages to rename
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/plugins/write.mdwn7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index 79a9066ce..d024a5dd4 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -373,11 +373,12 @@ new page.
### rename
- hook(type => "rename", id => "foo", call => \&renamepage);
+ hook(type => "rename", id => "foo", call => \&renamepages);
When a page or set of pages is renamed, the referenced function is
-called once per renamed page, and passed named parameters: `oldpage`,
-`newpage`.
+called, and passed a reference to an array of hashes with keys:
+`src`, `srcfile`, `dest`, `destfile`, `required`. It can modify
+the array.
### getsetup