You are here

function content_delete_revision in Content Construction Kit (CCK) 6.3

Same name and namespace in other branches
  1. 5 content.module \content_delete_revision()
  2. 6 content.module \content_delete_revision()
  3. 6.2 content.module \content_delete_revision()

Implementation of hook_nodeapi 'delete_revision' op.

Delete node type fields for a revision.

File

./content.module, line 320
Allows administrators to associate custom fields to content types.

Code

function content_delete_revision(&$node) {
  _content_field_invoke('delete revision', $node);
  _content_field_invoke_default('delete revision', $node);
  cache_clear_all('content:' . $node->nid . ':' . $node->vid, content_cache_tablename());
}