- 🇦🇺Australia VladimirAus Brisbane, Australia
Thank you for contribution. 👍
Drupal 7 is no longer supported. 🤷♂️
Closing as outdated. 🔐
As in all base entity modules, this module should also fire hook_entity_delete when deleting terms.
Here is an example in taxonomy_term_delete() on taxonomy.module:
...
if ($term = taxonomy_term_load($tid)) {
db_delete('taxonomy_term_data')->condition('tid', $tid)->execute();
db_delete('taxonomy_term_hierarchy')->condition('tid', $tid)->execute();
field_attach_delete('taxonomy_term', $term);
module_invoke_all('taxonomy_term_delete', $term);
module_invoke_all('entity_delete', $term, 'taxonomy_term'); // HERE IS WHAT THIS MODULE IS MISSING.
taxonomy_terms_static_reset();
}
...
Closed: outdated
1.0
Code
Thank you for contribution. 👍
Drupal 7 is no longer supported. 🤷♂️
Closing as outdated. 🔐