You are here

function mee_node_revision_delete in Scald: Media Management made easy 7

Implements hook_node_revision_delete().

File

modules/fields/mee/mee.module, line 582
Defines a special textarea, with drag and drop media driven by Scald and dnd.module.

Code

function mee_node_revision_delete($revision) {

  // Delete all resource associations for this revision
  db_delete('mee_resource')
    ->condition('entity_type', 'node')
    ->condition('entity_id', $revision->nid)
    ->condition('revision_id', $revision->vid)
    ->execute();
}