summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-11-02 17:46:47 +0000
committerDries Buytaert <dries@buytaert.net>2008-11-02 17:46:47 +0000
commitba1af4437529c30c46d5aabf5602ee5e4b3ebc43 (patch)
treeed57bf8d8f6278a956f967e6c6d7e5232e16d4ac /modules/taxonomy/taxonomy.module
parentad41b6dd93814fa29e8cef00061093e3a235c4ae (diff)
downloadbrdo-ba1af4437529c30c46d5aabf5602ee5e4b3ebc43.tar.gz
brdo-ba1af4437529c30c46d5aabf5602ee5e4b3ebc43.tar.bz2
- Patch #306224 by catch, sun: add proper taxonomy term hooks.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-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 86feae168..44c4c575f 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -327,7 +327,7 @@ function taxonomy_save_term(&$form_values) {
if (!empty($form_values['tid']) && $form_values['name']) {
$status = drupal_write_record('term_data', $form_values, 'tid');
- module_invoke_all('taxonomy_term_save', $term);
+ module_invoke_all('taxonomy_term_insert', $term);
}
elseif (!empty($form_values['tid'])) {
return taxonomy_del_term($form_values['tid']);
@@ -335,7 +335,7 @@ function taxonomy_save_term(&$form_values) {
else {
$status = drupal_write_record('term_data', $form_values);
$term->tid = $form_values['tid'];
- module_invoke_all('taxonomy_term_save', $term);
+ module_invoke_all('taxonomy_term_update', $term);
}
db_query('DELETE FROM {term_relation} WHERE tid1 = %d OR tid2 = %d', $form_values['tid'], $form_values['tid']);