summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-08-02 10:51:17 +0000
committerDries Buytaert <dries@buytaert.net>2009-08-02 10:51:17 +0000
commitfd22c347b01fced973e33873ba536ef21f0e35ac (patch)
tree2e7a93c952cd4596f072f7f9a883a4910ef227df
parenta55a0d99d1a2bd7368fdbb0831f4864e97af6752 (diff)
downloadbrdo-fd22c347b01fced973e33873ba536ef21f0e35ac.tar.gz
brdo-fd22c347b01fced973e33873ba536ef21f0e35ac.tar.bz2
- Patch #537044 by talor: hook_taxonomy_term_update and hook_taxonomy_term_insert were called backwards.
-rw-r--r--modules/taxonomy/taxonomy.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 9a95ae49c..2c19e76a1 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -427,13 +427,13 @@ function taxonomy_term_save($term) {
if (!empty($term->tid) && $term->name) {
$status = drupal_write_record('taxonomy_term_data', $term, 'tid');
field_attach_update('taxonomy_term', $term);
- module_invoke_all('taxonomy_term_insert', $term);
+ module_invoke_all('taxonomy_term_update', $term);
}
else {
$status = drupal_write_record('taxonomy_term_data', $term);
_taxonomy_clean_field_cache($term);
field_attach_insert('taxonomy_term', $term);
- module_invoke_all('taxonomy_term_update', $term);
+ module_invoke_all('taxonomy_term_insert', $term);
}
db_delete('taxonomy_term_relation')