function hook_workbench_moderation_transition in Workbench Moderation 7
Same name and namespace in other branches
- 7.3 workbench_moderation.api.php \hook_workbench_moderation_transition()
Allows modules to respond to state transitions.
Parameters
$node: The node that is being transitioned.
$previous_state: The state of the revision before the transition occurred.
$new_state: The new state of the revision.
1 function implements hook_workbench_moderation_transition()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
1 invocation of hook_workbench_moderation_transition()
- workbench_moderation_moderate in ./
workbench_moderation.module - Provide quick moderation of nodes.
File
- ./
workbench_moderation.api.php, line 66 - API documentation file for Workbench Moderation.
Code
function hook_workbench_moderation_transition($node, $previous_state, $new_state) {
// Your code here.
}