function taxonomy_term_depth_entity_update in Taxonomy Term Depth 7
Same name and namespace in other branches
- 8.2 taxonomy_term_depth.module \taxonomy_term_depth_entity_update()
- 8 taxonomy_term_depth.module \taxonomy_term_depth_entity_update()
Implements hook_entity_update();
1 call to taxonomy_term_depth_entity_update()
- taxonomy_term_depth_entity_insert in ./
taxonomy_term_depth.module - Implements hook_entity_insert()
File
- ./
taxonomy_term_depth.module, line 65 - Provides some custom functionality.
Code
function taxonomy_term_depth_entity_update($entity, $type) {
// Update depth of the item on save
if ($type == 'taxonomy_term') {
taxonomy_term_depth_get_by_tid($entity->tid, TRUE);
}
}