You are here

function editor_note_node_revision_delete in Editor Notes 7

Implements hook_node_revision_delete().

File

./editor_note.module, line 295
Main functionality for Editor Notes module.

Code

function editor_note_node_revision_delete($node) {

  // Removes notes from editor notes table.
  db_delete('editor_note')
    ->condition('entity_type', 'node')
    ->condition('entity_id', $node->nid)
    ->condition('revision_id', $node->vid)
    ->execute();
}