You are here

function multiversion_module_implements_alter in Multiversion 8

Same name and namespace in other branches
  1. 8.2 multiversion.module \multiversion_module_implements_alter()

Implements hook_module_implements_alter().

File

./multiversion.module, line 21

Code

function multiversion_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'entity_type_alter') {
    $group = $implementations['multiversion'];
    unset($implementations['multiversion']);
    $implementations = [
      'multiversion' => $group,
    ] + $implementations;
  }
  if ($hook == 'field_info_alter') {
    $group = $implementations['multiversion'];
    unset($implementations['multiversion']);
    $implementations['multiversion'] = $group;
  }
}