function entity_hierarchy_microsite_module_implements_alter in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x modules/entity_hierarchy_microsite/entity_hierarchy_microsite.module \entity_hierarchy_microsite_module_implements_alter()
Implements hook_module_implements_alter().
File
- modules/
entity_hierarchy_microsite/ entity_hierarchy_microsite.module, line 75 - Contains main module functionality.
Code
function entity_hierarchy_microsite_module_implements_alter(&$implementations, $hook) {
if ($hook == 'entity_update' || $hook === 'entity_delete') {
// Our implementation of these hooks needs to go after entity_hierarchy
// so that the parent update can run.
$definition = $implementations['entity_hierarchy_microsite'];
unset($implementations['entity_hierarchy_microsite']);
$implementations['entity_hierarchy_microsite'] = $definition;
}
}