You are here

function hook_workbench_moderation_transition in Workbench Moderation 7.3

Same name and namespace in other branches
  1. 7 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.

2 functions implement 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.

workbench_moderation_test_workbench_moderation_transition in tests/workbench_moderation_test/workbench_moderation_test.module
Implements hook_workbench_moderation_transition().
workbench_moderation_workbench_moderation_transition in ./workbench_moderation.module
Implementation of hook_workbench_moderation_transition().
1 invocation of hook_workbench_moderation_transition()
workbench_moderation_save in ./workbench_moderation.module
Saves the moderation history for the node.

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.
}