diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/hook/comments_are_now_closed.bb | 11 | ||||
-rw-r--r-- | doc/hooklist.bb | 3 |
2 files changed, 14 insertions, 0 deletions
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 diff --git a/doc/hooklist.bb b/doc/hooklist.bb index e11bf1c6f..a923e7ae3 100644 --- a/doc/hooklist.bb +++ b/doc/hooklist.bb @@ -154,6 +154,9 @@ Hooks allow plugins/addons to "hook into" the code at many points and alter the [zrl=[baseurl]/help/hook/comment_buttons]comment_buttons[/zrl] Called when rendering the edit buttons for comments +[zrl=[baseurl]/help/hook/comments_are_now_closed]comments_are_now_closed[/zrl] + Called when deciding whether or not to present a comment box for a post + [zrl=[baseurl]/help/hook/connect_premium]connect_premium[/zrl] Called when connecting to a premium channel |