3.6.3. javascript_register

Modules can provide JavaScript code that has to be added to the Phorum pages. Modules that make use of this facility should register the JavaScript code using this hook.

Call time:

At the start of the javascript.php script.

Hook input:

An array of registrations. Modules can register their JavaScript code for inclusion by adding a registration to this array. A registration is an array, containing the following fields:

Hook output:

The same array as the one that was used as the hook call argument, possibly extended with one or more registrations.