You are here

function state_flow_node_revision_delete in State Machine 7.3

Same name and namespace in other branches
  1. 6 modules/state_flow/state_flow.module \state_flow_node_revision_delete()
  2. 7 modules/state_flow/state_flow.module \state_flow_node_revision_delete()
  3. 7.2 modules/state_flow/state_flow.module \state_flow_node_revision_delete()

Implements hook_node_revision_delete().

File

modules/state_flow/state_flow.module, line 337
An implementation of node revision workflow for Drupal based on the State Machine system.

Code

function state_flow_node_revision_delete($node) {

  // Delete history and update active revision for this entity.
  $machine = state_flow_entity_load_state_machine($node, 'node');
  $machine
    ->delete_state_flow_revision($node->vid, 'node');
}