Same name in other branches
- 6.0.x advagg.module \advagg_module_implements_alter()
- 7.x-2.x advagg.module \advagg_module_implements_alter()
- 8.x-2.x advagg.module \advagg_module_implements_alter()
- 8.x-3.x advagg.module \advagg_module_implements_alter()
- 8.x-4.x advagg.module \advagg_module_implements_alter()
Implements hook_module_implements_alter().
Move advagg and various submodule's implementations to last.
File
-
./
advagg.module, line 17
Code
function advagg_module_implements_alter(&$implementations, $hook) {
if ($hook === 'js_alter') {
// Move advagg and advagg_mod to the bottom.
if (isset($implementations['advagg_mod'])) {
$item = $implementations['advagg_mod'];
unset($implementations['advagg_mod']);
$implementations['advagg_mod'] = $item;
}
$item = $implementations['advagg'];
unset($implementations['advagg']);
$implementations['advagg'] = $item;
}
elseif ($hook === 'css_alter') {
if (isset($implementations['advagg_mod'])) {
$item = $implementations['advagg_mod'];
unset($implementations['advagg_mod']);
$implementations['advagg_mod'] = $item;
}
$item = $implementations['advagg'];
unset($implementations['advagg']);
$implementations['advagg'] = $item;
}
}