summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-09-25 14:24:34 +0000
committerDries Buytaert <dries@buytaert.net>2009-09-25 14:24:34 +0000
commitd734f2f25d4866dc56c65766a8e196eac8a63047 (patch)
tree7dae4e3b2a1148f11b57b32908f5e5fdfff65c0d /modules/taxonomy/taxonomy.module
parent8b0b496a1c93b685c6e9dd25b6e4b008fb91cf51 (diff)
downloadbrdo-d734f2f25d4866dc56c65766a8e196eac8a63047.tar.gz
brdo-d734f2f25d4866dc56c65766a8e196eac8a63047.tar.bz2
- Patch #581392 by sun, catch | mr.baileys: Fixed Add an API function for deleting revisions.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index ed8aa2c98..ee18ede4c 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -865,8 +865,7 @@ function taxonomy_node_get_terms($node, $key = 'tid') {
* Save term associations for a given node.
*/
function taxonomy_node_save($node, $terms) {
-
- taxonomy_node_delete_revision($node);
+ taxonomy_node_revision_delete($node);
// Free tagging vocabularies do not send their tids in the form,
// so we'll detect them here and process them independently.
@@ -1594,11 +1593,11 @@ function taxonomy_node_delete($node) {
}
/**
- * Implement hook_node_delete_revision().
+ * Implement hook_node_revision_delete().
*
* Remove associations of a node to its terms.
*/
-function taxonomy_node_delete_revision($node) {
+function taxonomy_node_revision_delete($node) {
db_delete('taxonomy_term_node')
->condition('vid', $node->vid)
->execute();