From 5738f30a2954705f7954e7fb99205f5a08d35ccb Mon Sep 17 00:00:00 2001 From: intrigeri Date: Tue, 30 Dec 2008 22:55:04 +0100 Subject: the rename hook can now change the list of pages to rename Signed-off-by: intrigeri --- doc/plugins/write.mdwn | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'doc/plugins/write.mdwn') 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 -- cgit v1.2.3