Commit fd22c347 authored by Dries's avatar Dries

- Patch #537044 by talor: hook_taxonomy_term_update and...

- Patch #537044 by talor: hook_taxonomy_term_update and hook_taxonomy_term_insert were called backwards.
parent a55a0d99
......@@ -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')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment