function taxonomy_revision_delete in Taxonomy revision 7
Deletes a taxonomy term revision.
Parameters
taxonomy_term $revision: The revision to delete.
1 call to taxonomy_revision_delete()
- taxonomy_revision_delete_confirm_submit in ./
taxonomy_revision.pages.inc - Submit handler for the taxonomy revision delete form. Deletes a taxonomy term revision.
File
- ./
taxonomy_revision.module, line 372 - This is the main module file for the Taxonomy revision module.
Code
function taxonomy_revision_delete($revision) {
db_delete('taxonomy_term_data_revision')
->condition('tid', $revision->tid)
->condition('revision_id', $revision->revision_id)
->execute();
module_invoke_all('taxonomy_revision_delete', $revision);
field_attach_delete_revision('taxonomy_revision', $revision);
return TRUE;
}