summaryrefslogtreecommitdiff
path: root/doc/plugins/write.mdwn
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-01-01 16:38:16 +0100
committerintrigeri <intrigeri@boum.org>2009-01-01 16:44:39 +0100
commit741b26aa176b34d0359a2b89dd6d8293fcdf2b3d (patch)
treea11600b8035bba15841272347eae72f2f68ac9df /doc/plugins/write.mdwn
parent5852f03efacb391f97d3d68e98ec8888cd09dc84 (diff)
remove: implemented a new canremove hook; use it in the po plugin
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'doc/plugins/write.mdwn')
-rw-r--r--doc/plugins/write.mdwn8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index eb50ca4ef..e20cce763 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -321,6 +321,14 @@ This hook should avoid directly redirecting the user to a signin page,
since it's sometimes used to test to see which pages in a set of pages a
user can edit.
+### canremove
+
+ 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.
+
### editcontent
hook(type => "editcontent", id => "foo", call => \&editcontent);