X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/c01485ae1ad751ac87eb3cfa392f6d276d5b1157..885e4b607ae6cdcd48c792ce45c8b7faa29a76fb:/doc/plugins/write.mdwn?ds=sidebyside 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