hObjectDeleteUserInterface

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

Arguments

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

Response

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 = ...
});