Getting started

Channel hooks are set up by creating a configuration file that has a .HOOK extension. The main parameters are defined like this:

[Config]
ScriptFilename=...
DisplayName=...
AuthorName=...
AuthorEmailAddress=...
Notes=...

ScriptFilename specifies where the actual channel hook script lives. If it is not an absolute path then it is assumed that it is in the same directory as the .HOOK file.

 

Registering for events

Channel hooks must register for the events that they want to be called for. The available events are:

A channel hook indicates that it wants to be notified of an event by including it in the [Events] section in the .HOOK file. For example:

 
[Events]
BeginChannelUpdate=1
ConsolidatedNewFeedItems=1

Whenever an event the channel hook has registered for occurs, it will be called and passed an INI file that contains detailed information about the event.

 

Read more about...