document the new change_channel hook
This commit is contained in:
parent
833de9180e
commit
17c3e12eab
11
doc/hook/change_channel.bb
Normal file
11
doc/hook/change_channel.bb
Normal file
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user