Pawtucket2 plugin hooks
From CollectiveAccess Documentation
Supported hooks in Pawtucket2 include:
Hook name | Description | Parameters | Where used | |
hookDetailDownloadMediaObjectIDs |
Triggered during a user-requested download from a detail. Passes a list of requested objects for which media will be downloaded. The plugin may modify this list to control what is actually sent to the user. | Param 1: an array containing a list of object_id's for which the user is requesting a download. The plugin may modify and return this list to expand or reduce the media that will be included in the download. | DetailContoller | |
hookDetailDownloadMediaFilePaths |
Triggered during a user-requested download from a detail. Passes a list of paths to media that will be downloaded. The plugin may modify this list to control what is actually sent to the user. | Param 1: an array containing a list of file paths for which the user is requesting a download. The plugin may modify and return this list to expand or reduce the media that will be included in the download, or to add additional files, such as a README file. | DetailContoller | |
hookReplaceSearch |
Triggered prior to "full" search on a specific item type (not a multi-record "multi search") with information about the search. The plugin can rewrite the user-entered search expression as well as configuration information. If a search result instance is returned for the result value that instance will be used in place of the search to be executed. This allows the plugin to adjust search parameters or, when needed, override normal search behavior with a synthesized result. | Param 1: an array containing these keys and values:
|
SearchContoller |
sphinx2022 pawtucket