function hook_skinr_implements_alter in Skinr 7.2
Same name and namespace in other branches
- 8.2 skinr.api.php \hook_skinr_implements_alter()
Alter the registry of modules implementing a skinr hook.
Parameters
$implementations: An array keyed by the module's name. The value of each item corresponds to a $group, which is usually FALSE, unless the implementation is in a file named $module.$group.inc.
$hook: The name of the module hook being implemented.
Related topics
1 invocation of hook_skinr_implements_alter()
- skinr_implements in ./
skinr.module - Determine which modules are implementing a hook.
File
- ./
skinr.api.php, line 476 - This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.
Code
function hook_skinr_implements_alter(&$implementations, $hook) {
if ($hook == 'skinr_elements') {
// Move my_module_skinr_elements() to the end of the list. skinr_implements()
// iterates through $implementations with a foreach loop which PHP iterates
// in the order that the items were added, so to move an item to the end of
// the array, we remove it and then add it.
$group = $implementations['my_module'];
unset($implementations['my_module']);
$implementations['my_module'] = $group;
}
}