From 707b19dc35160983694b21e5e79dd7ce6d64dfee Mon Sep 17 00:00:00 2001 From: "M. Dent" Date: Sun, 3 Nov 2019 10:12:11 +0100 Subject: Add hook to comments_are_now_closed() --- doc/hook/comments_are_now_closed.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 doc/hook/comments_are_now_closed.bb (limited to 'doc/hook/comments_are_now_closed.bb') diff --git a/doc/hook/comments_are_now_closed.bb b/doc/hook/comments_are_now_closed.bb new file mode 100644 index 000000000..4d3baa95a --- /dev/null +++ b/doc/hook/comments_are_now_closed.bb @@ -0,0 +1,11 @@ +[h3]comments_are_now_closed[/h3] + +Called when deciding whether or not commenting is closed for an item. + + +Hook data (array): + item => posted item + closed => 'unset' + + +To over-ride the default behaviour, change closed to true or false -- cgit v1.2.3