You are here

function conflict_module_implements_alter in Conflict 8.2

Implements hook_module_implements_alter().

File

./conflict.module, line 20
The module that makes concurrent editing possible.

Code

function conflict_module_implements_alter(&$implementations, $hook) {

  // Move the hooks conflict_form_alter(), conflict_entity_load() and
  // conflict_entity_type_alter() to the end of the list.
  if (in_array($hook, [
    'form_alter',
    'entity_load',
    'entity_type_alter',
  ])) {
    $group = $implementations['conflict'];
    unset($implementations['conflict']);
    $implementations['conflict'] = $group;
  }
}