You are here

function state_flow_node_delete in State Machine 7

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

Implements hook_node_delete().

File

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

Code

function state_flow_node_delete($node) {
  $result = db_delete('node_revision_states')
    ->condition('nid', $node->nid)
    ->execute();
  $result = db_delete('node_revision_states_history')
    ->condition('nid', $node->nid)
    ->execute();
}