diff options
author | Mario <mario@mariovavti.com> | 2019-11-03 10:12:12 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-11-03 10:12:12 +0100 |
commit | d0661cd4a30db7042835ca3ffda6a194d6bad9a7 (patch) | |
tree | 5ad172a9f06e31f6e360d535427e7dd76d8b050a /doc/hook/comments_are_now_closed.bb | |
parent | 6fd15d66a7a0eb1aaac476e2d25cfea174d0cd81 (diff) | |
parent | 707b19dc35160983694b21e5e79dd7ce6d64dfee (diff) | |
download | volse-hubzilla-d0661cd4a30db7042835ca3ffda6a194d6bad9a7.tar.gz volse-hubzilla-d0661cd4a30db7042835ca3ffda6a194d6bad9a7.tar.bz2 volse-hubzilla-d0661cd4a30db7042835ca3ffda6a194d6bad9a7.zip |
Merge branch 'commentsclosed-hook' into 'dev'
Add hook to comments_are_now_closed()
See merge request hubzilla/core!1763
Diffstat (limited to 'doc/hook/comments_are_now_closed.bb')
-rw-r--r-- | doc/hook/comments_are_now_closed.bb | 11 |
1 files changed, 11 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 |