hLabelUpdatedObject

Apply Labels to an updated object, by adding or removing labels using a LabelChanges object passed to the hook function.

See also hLabelObject for labelling new objects.

Arguments

Name Type Description
object StoreObject The object which is about to be updated

Response

Return information by changing these properties of the response object.

Name Type Description
changes LabelChanges Changes to apply to the label list

JavaScript template


P.hook('hLabelUpdatedObject', function(response, object) {
    // Respond to hook, for example
    // response.changes = ...
});