diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-06-23 02:45:35 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-06-23 02:45:35 +0000 |
commit | c28bba827e0c62ab92062c1e0cc0490ff50079fe (patch) | |
tree | 929d1b7860c738b0eb5eab1e632843cb9e7955d4 /modules/taxonomy | |
parent | 522b923a8be253498e6083fd579f458f17ad30d9 (diff) | |
download | brdo-c28bba827e0c62ab92062c1e0cc0490ff50079fe.tar.gz brdo-c28bba827e0c62ab92062c1e0cc0490ff50079fe.tar.bz2 |
- Patch #834924 by jhodgdon: entity_invoke() is worthless.
Diffstat (limited to 'modules/taxonomy')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 842bb656a..8d25355f0 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -378,13 +378,13 @@ function taxonomy_vocabulary_save($vocabulary) { if (!empty($vocabulary->vid) && !empty($vocabulary->name)) { $status = drupal_write_record('taxonomy_vocabulary', $vocabulary, 'vid'); module_invoke_all('taxonomy_vocabulary_update', $vocabulary); - entity_invoke('update', 'taxonomy_vocabulary', $vocabulary); + module_invoke_all('entity_update', $vocabulary, 'taxonomy_vocabulary'); } elseif (empty($vocabulary->vid)) { $status = drupal_write_record('taxonomy_vocabulary', $vocabulary); field_attach_create_bundle('taxonomy_term', $vocabulary->machine_name); module_invoke_all('taxonomy_vocabulary_insert', $vocabulary); - entity_invoke('insert', 'taxonomy_vocabulary', $vocabulary); + module_invoke_all('entity_insert', $vocabulary, 'taxonomy_vocabulary'); } cache_clear_all(); @@ -486,7 +486,7 @@ function taxonomy_term_save($term) { $status = drupal_write_record('taxonomy_term_data', $term); field_attach_insert('taxonomy_term', $term); module_invoke_all('taxonomy_term_insert', $term); - entity_invoke('insert', 'taxonomy_term', $term); + module_invoke_all('entity_insert', $term, 'taxonomy_term'); if (!isset($term->parent)) { $term->parent = array(0); } @@ -495,7 +495,7 @@ function taxonomy_term_save($term) { $status = drupal_write_record('taxonomy_term_data', $term, 'tid'); field_attach_update('taxonomy_term', $term); module_invoke_all('taxonomy_term_update', $term); - entity_invoke('update', 'taxonomy_term', $term); + module_invoke_all('entity_update', $term, 'taxonomy_term'); if (isset($term->parent)) { db_delete('taxonomy_term_hierarchy') ->condition('tid', $term->tid) |