hPreWorkUnitSave

This hook allows a plugin to modify a work unit before it is saved, for instance, by updating the tags.

Arguments

Name Type Description
workUnit WorkUnit The work unit that will be saved

Response

No data is returned in the response object.

JavaScript template


P.hook('hPreWorkUnitSave', function(response, workUnit) {
    // Respond to hook
});