hook_workbench_moderation_access_alter() is used in a couple of different places to allow modules to alter the access on a node. When it is used in _workbench_moderation_moderate_access() it is a slightly different context to other uses, and implementing modules could make use of the $state variable being passed into the alter function.

Patch to follow.

Comments

msmithcti’s picture

Status: Active » Needs review
StatusFileSize
new1.54 KB

This patch adds an additional alter function, hook_workbench_moderation_state_access_alter() that additionally takes a $state variables for the workbench state change access is being checked for. I've also added documentation to workbench_moderation.api.php for this new hook.