Prev |  | Next

### 3.6.4. javascript_filter

This hook can be used to apply a filter to the Phorum JavaScript code. This can for example be used for compressing or cleaning up the JavaScript.

Call time:

Right after the javascript.php script has generated a new JavaScript file and right before storing that file in the cache. The filter hook will not be run for every request to javascript.php, but only in case the JavaScript code has to be refreshed.

Hook input:

The generated JavaScript code.

Hook output:

The filtered JavaScript code.

Prev | Up | Next
| Home |