diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-10-15 03:36:21 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-10-15 03:36:21 +0000 |
commit | 91bc8bed90634548d06087e9ff9d2ad616e0392f (patch) | |
tree | c448567630985e68b3f072aea92794eb2662c6de /modules/taxonomy | |
parent | 8ab93aeaf11a90ff456c91382b4e7f780d632de3 (diff) | |
download | brdo-91bc8bed90634548d06087e9ff9d2ad616e0392f.tar.gz brdo-91bc8bed90634548d06087e9ff9d2ad616e0392f.tar.bz2 |
#709892 by drunken monkey, Yorirou: Complete entity CRUD hook invocations: Add a hook_entity_delete() for consistency.
Diffstat (limited to 'modules/taxonomy')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 57c697c53..e353c9584 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -431,7 +431,8 @@ function taxonomy_vocabulary_delete($vid) { ->execute(); field_attach_delete_bundle('taxonomy_term', $vocabulary['machine_name']); - module_invoke_all('taxonomy', 'delete', 'vocabulary', $vocabulary); + module_invoke_all('taxonomy_vocabulary_delete', $vocabulary); + module_invoke_all('entity_delete', $vocabulary, 'taxonomy_vocabulary'); cache_clear_all(); entity_get_controller('taxonomy_vocabulary')->resetCache(); @@ -612,6 +613,7 @@ function taxonomy_term_delete($tid) { field_attach_delete('taxonomy_term', $term); module_invoke_all('taxonomy_term_delete', $term); + module_invoke_all('entity_delete', $term, 'taxonomy_term'); taxonomy_terms_static_reset(); } } |