1 common_test.module | common_test_module_implements_alter(&$implementations, $hook) |
Implements hook_module_implements_alter().
See also
block_backdrop_alter_foo_alter()
File
- core/
modules/ simpletest/ tests/ common_test.module, line 240 - Helper module for the Common tests.
Code
function common_test_module_implements_alter(&$implementations, $hook) {
// For backdrop_alter(array('backdrop_alter', 'backdrop_alter_foo'), ...), make the
// block module implementations run after all the other modules. Note that
// when backdrop_alter() is called with an array of types, the first type is
// considered primary and controls the module order.
if ($hook == 'backdrop_alter_alter' && isset($implementations['block'])) {
$group = $implementations['block'];
unset($implementations['block']);
$implementations['block'] = $group;
}
}