summaryrefslogtreecommitdiff
path: root/doc/plugins/write.mdwn
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-01-01 18:04:37 +0100
committerintrigeri <intrigeri@boum.org>2009-01-01 18:04:37 +0100
commite895157397c4602359f8612e4ce9964bcabc8928 (patch)
treec9735a94cf8be8b02f1228c8596bac48cfdbfc78 /doc/plugins/write.mdwn
parent131d2d4e7cac6bfa634fd7d356095733a64e0fd8 (diff)
Pass src, srcfile, dest and destfile to the canrename hook.
This is not needed by the use I'm doing of it, but seems more consistent to me. Future users of this hook may need this data to make their mind. Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'doc/plugins/write.mdwn')
-rw-r--r--doc/plugins/write.mdwn6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index a1e14cb94..92e372cfa 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -335,7 +335,11 @@ bypass it). It works exactly like the `canedit` hook.
This hook can be used to implement arbitrary access methods to control when
a page can be renamed using the web interface (commits from revision control
-bypass it). It works exactly like the `canedit` hook.
+bypass it). It works exactly like the `canedit` and `canremove` hook,
+but is passed:
+* a CGI object
+* a session object
+* the named parameters `src`, `srcfile`, `dest` and `destfile`.
### editcontent