function authcache_module_implements_alter in Authenticated User Page Caching (Authcache) 7.2
Implements hook_module_implements_alter().
Make sure that hook_init of this module is called before all other modules and vice versa for hook_exit.
File
- ./
authcache.module, line 75 - Authenticated User Page Caching (and anonymous users, too!)
Code
function authcache_module_implements_alter(&$implementations, $hook) {
if ($hook === 'init') {
$me = $implementations['authcache'];
unset($implementations['authcache']);
$implementations = array_merge(array(
'authcache' => $me,
), $implementations);
}
if ($hook === 'exit') {
$me = $implementations['authcache'];
unset($implementations['authcache']);
$implementations['authcache'] = $me;
}
}