You are here

function hook_workflow_history_alter in Workflow 7

Same name and namespace in other branches
  1. 8 workflow.api.php \hook_workflow_history_alter()
  2. 7.2 workflow.api.php \hook_workflow_history_alter()

Implements hook_workflow_history_alter(). Add an 'undo' operation for the most recent history change.

Parameters

$variables: The current workflow history information as an array. 'old_sid' - The state ID of the previous state. 'old_state_name' - The state name of the previous state. 'sid' - The state ID of the current state. 'state_name' - The state name of the current state. 'history' - The row from the workflow_node_history table.

If you want to add additional data, such as an operation link, place it in the 'extra' value.

1 function implements hook_workflow_history_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

workflow_revert_workflow_history_alter in workflow_revert/workflow_revert.module
Implements hook_workflow_history_alter(). Add an 'undo' operation for the most recent history change.
1 invocation of hook_workflow_history_alter()
workflow_tab_page in ./workflow.pages.inc
Menu callback. Display workflow summary of a node.

File

./workflow.api.php, line 66
Hooks provided by the workflow module.

Code

function hook_workflow_history_alter(&$variables) {

  // The Workflow module does nothing with this hook.
  // For an example implementation, see the Workflow Revert add-on.
}