You are here

function render_cache_module_implements_alter in Render cache 7

Implements hook_module_implements_alter().

Moves our hook_entity_info_alter() implementation to occur last so that we can consistently hijack the render function of the entity type.

Parameters

array $implementations:

string $hook:

File

./render_cache.module, line 353
Hook implementations and frequently used functions for render cache module.

Code

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

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