You are here

function revisioning_delete_archived_revisions in Revisioning 6.3

Same name and namespace in other branches
  1. 8 revisioning_api.inc \revisioning_delete_archived_revisions()
  2. 7 revisioning_api.inc \revisioning_delete_archived_revisions()

Delete all revisions with a vid less than the current.

2 calls to revisioning_delete_archived_revisions()
revisioning_delete_archived_action in ./revisioning_triggers_actions.inc
Implementation of delete archived action.
revisioning_delete_archived_confirm_submit in ./revisioning.pages.inc
Submission handler for the delete_archived_confirm form.

File

./revisioning_api.inc, line 434
API functions of Revisioning module

Code

function revisioning_delete_archived_revisions($node) {
  db_query('DELETE FROM {term_node} WHERE nid = %d AND vid < %d', $node->nid, $node->current_revision_id);
  return db_query('DELETE FROM {node_revisions} WHERE nid = %d AND vid < %d', $node->nid, $node->current_revision_id);
}