You are here

function display_cache_module_implements_alter in Display Cache 7

Implements hook_module_implements_alter().

Move the hook implementation of hook_entity_info_alter() to the bottom to be able to alter the view callback added by Entity API during this hook.

See also

entity_entity_info_alter()

display_cache_install()

File

./display_cache.module, line 491
Module file for Display Cache.

Code

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

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