You are here

function entity_hierarchy_microsite_module_implements_alter in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 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;
  }
}