This hook allows a plugin to replace the built-in object deletion user interface.


Name Type Description
object StoreObject The object the user would like to delete


Return information by changing these properties of the response object.

Name Type Description
redirectPath String If set, the user will be redirected to this path instead of the built-in object deletion user interface

JavaScript template

P.hook('hObjectDeleteUserInterface', function(response, object) {
    // Respond to hook, for example
    // response.redirectPath = ...