function state_flow_node_revision_delete in State Machine 7
Same name and namespace in other branches
- 6 modules/state_flow/state_flow.module \state_flow_node_revision_delete()
- 7.3 modules/state_flow/state_flow.module \state_flow_node_revision_delete()
- 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 217 - An implementation of node revision workflow for Drupal based on the State Machine system.
Code
function state_flow_node_revision_delete($node) {
$result = db_delete('node_revision_states')
->condition('vid', $node->vid)
->execute();
$result = db_delete('node_revision_states_history')
->condition('vid', $node->vid)
->execute();
}