You are here

function state_flow_node_revision_delete in State Machine 7.2

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

Implements hook_node_revision_delete().

File

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

Code

function state_flow_node_revision_delete($node) {
  db_delete('node_revision_states')
    ->condition('vid', $node->vid)
    ->execute();
  db_delete('node_revision_states_history')
    ->condition('vid', $node->vid)
    ->execute();
}