aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-11 17:45:10 -0700
committerredmatrix <git@macgirvin.com>2016-07-11 17:45:10 -0700
commita01baab4f0dc1654dfe2d2cc6fc78e5c3c8d9f4e (patch)
treea0c5e55621e24f0fce38a827613fc16d6b56f199 /doc
parent71b001fdb7f4c900f6e7ff15a29952d6dc82c1fc (diff)
parent17c3e12eabf93fe76061af0b97d25c6a9d080025 (diff)
downloadvolse-hubzilla-a01baab4f0dc1654dfe2d2cc6fc78e5c3c8d9f4e.tar.gz
volse-hubzilla-a01baab4f0dc1654dfe2d2cc6fc78e5c3c8d9f4e.tar.bz2
volse-hubzilla-a01baab4f0dc1654dfe2d2cc6fc78e5c3c8d9f4e.zip
Merge branch 'dev' into perms
Diffstat (limited to 'doc')
-rw-r--r--doc/hook/change_channel.bb11
-rw-r--r--doc/hooklist.bb3
2 files changed, 14 insertions, 0 deletions
diff --git a/doc/hook/change_channel.bb b/doc/hook/change_channel.bb
new file mode 100644
index 000000000..4514b9265
--- /dev/null
+++ b/doc/hook/change_channel.bb
@@ -0,0 +1,11 @@
+[h2]change_channel[/h2]
+
+Called when entering a logged in state in a channel context (as opposed to an account context).
+The hook array provides two arguments, 'channel_id' and 'chanx'. 'chanx' is a union of the channel
+and xchan records for the now active channel.
+
+Use this to capture what would traditionally be known as 'login events'. In this platform, login is
+a separate authentication activity and doesn't necessarily require "connecting to an identity", which
+is what the change_channel activity represents.
+
+
diff --git a/doc/hooklist.bb b/doc/hooklist.bb
index bb1bffcf0..66ff1cf71 100644
--- a/doc/hooklist.bb
+++ b/doc/hooklist.bb
@@ -73,6 +73,9 @@ Hooks allow plugins/addons to "hook into" the code at many points and alter the
[zrl=[baseurl]/help/hook/bb_translate_video]bb_translate_video[/zrl]
Called when extracting embedded services from bbcode video elements (rarely used)
+[zrl=[baseurl]/help/hook/change_channel]change_channel[/zrl]
+ Called when logging in to a channel (either during login or afterward through the channel manager)
+
[zrl=[baseurl]/help/hook/channel_remove]channel_remove[/zrl]
Called when removing a channel