You are here

function entity_module_implements_alter in Entity API 7

Implements hook_module_implements_alter().

Moves the hook_entity_info_alter() implementation to the bottom so it is invoked after all modules relying on the entity API. That way we ensure to run last and clear the field-info cache after the others added in their bundle information.

See also

entity_entity_info_alter()

File

./entity.module, line 1468

Code

function entity_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'entity_info_alter') {

    // Move our hook implementation to the bottom.
    $group = $implementations['entity'];
    unset($implementations['entity']);
    $implementations['entity'] = $group;
  }
}