You are here

function flashnode_delete_revision in Flash Node 6.3

Same name and namespace in other branches
  1. 6.2 flashnode.module \flashnode_delete_revision()

Delete a flashnode revision

1 call to flashnode_delete_revision()
flashnode_nodeapi in ./flashnode.module
Implementation of hook_nodeapi().

File

./flashnode.module, line 943

Code

function flashnode_delete_revision($node) {

  // Delete the file if it is no longer needed when this revision is removed
  _flashnode_delete_file_if_no_longer_needed($node->flashnode['fid']);

  // Delete this revision from {flashnode}
  db_query("DELETE FROM {flashnode} WHERE vid = %d", $node->vid);
}