hPostObjectChange
Informs plugins of object store operations. This should be treated as for information only.
Plugins cannot affect the operation.
Arguments
Name | Type | Description |
object |
StoreObject |
The object which has been changed |
operation |
String |
What operation was performed: ‘create’, ‘update’, ‘relabel’ or ‘erase’ |
previous |
StoreObject |
The previous version of the object, or null |
Response
No data is returned in the response
object.
JavaScript template
P.hook('hPostObjectChange', function(response, object, operation, previous) { // Respond to hook });