hGetReportsList
This hook allows a plugin to add to the list of reports the user is allowed to view.
Only add a report to the list if the user is authorised.
Arguments
This hook does not take any arguments.
Response
Return information by changing these properties of the response
object.
Name | Type | Description |
reports |
Array |
An array containing a list of reports. Append [url_path,report_name] |
JavaScript template
P.hook('hGetReportsList', function(response) { // Respond to hook, for example // response.reports = ... });