diff options
author | zotlabs <mike@macgirvin.com> | 2017-06-14 16:07:21 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-06-14 16:07:21 -0700 |
commit | 234c64574b4ee5ca22b85ae2fecc301286423068 (patch) | |
tree | 7786bed424457e327f30b067bf0ef39c7446ac99 /doc/hook | |
parent | f28fa0ab5a46a231695a851f2345a3669419c842 (diff) | |
parent | 1f075d92bc4e47ae282f811d10c31cd6f09191a6 (diff) | |
download | volse-hubzilla-234c64574b4ee5ca22b85ae2fecc301286423068.tar.gz volse-hubzilla-234c64574b4ee5ca22b85ae2fecc301286423068.tar.bz2 volse-hubzilla-234c64574b4ee5ca22b85ae2fecc301286423068.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'doc/hook')
-rw-r--r-- | doc/hook/can_comment_on_post.bb | 13 | ||||
-rw-r--r-- | doc/hook/connection_remove.bb | 9 |
2 files changed, 22 insertions, 0 deletions
diff --git a/doc/hook/can_comment_on_post.bb b/doc/hook/can_comment_on_post.bb new file mode 100644 index 000000000..2cfd3b2da --- /dev/null +++ b/doc/hook/can_comment_on_post.bb @@ -0,0 +1,13 @@ +[h3]can_comment_on_post[/h3] + +Called when deciding whether or not to display a comment box for a post. + + +Hook data (array): + observer_hash => xchan_hash of current observer + item => posted item + allowed => 'unset' + + +To over-ride the default behaviour, change allowed to true or false + diff --git a/doc/hook/connection_remove.bb b/doc/hook/connection_remove.bb new file mode 100644 index 000000000..bd13ae5f2 --- /dev/null +++ b/doc/hook/connection_remove.bb @@ -0,0 +1,9 @@ +[h3]connection_remove[/h3] + +Called when deleting a connection. + + +Passed parameter array: + + 'channel_id' => channel_id of the channel removing the connection + 'abook_id' => abook_id of the connection being removed |