You are here

function workbench_moderation_node_delete in Workbench Moderation 7

Same name and namespace in other branches
  1. 7.3 workbench_moderation.module \workbench_moderation_node_delete()

Implements hook_node_delete().

File

./workbench_moderation.module, line 791
Content moderation for Workbench.

Code

function workbench_moderation_node_delete($node) {

  // Delete node history when it is deleted.
  db_delete('workbench_moderation_node_history')
    ->condition('nid', $node->nid)
    ->execute();
}