From 78a095aa42acf19b5b28ca402d14e88e6dcf5c3b Mon Sep 17 00:00:00 2001 From: intrigeri Date: Mon, 26 Jan 2009 23:07:19 +0100 Subject: only pass named parameters to the canremove hook Signed-off-by: intrigeri --- doc/plugins/write.mdwn | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'doc/plugins') diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index b60dc66f2..dde0d431c 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -325,9 +325,11 @@ user can edit. hook(type => "canremove", id => "foo", call => \&canremove); -This hook can be used to implement arbitrary access methods to control when -a page can be removed using the web interface (commits from revision control -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 removed using the web interface (commits from +revision control bypass it). It works exactly like the `canedit` hook, +but is passed the named parameters `cgi` (a CGI object), `session` +(a session object) and `page` (the page subject to deletion). ### canrename @@ -335,7 +337,7 @@ 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` and `canremove` hook, +bypass it). It works exactly like the `canedit` hook, but is passed the named parameters `cgi` (a CGI object), `session` (a session object), `src`, `srcfile`, `dest` and `destfile`. -- cgit v1.2.3