Active
Project:
COOKiES Consent Management
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2025 at 09:31 UTC
Updated:
11 Nov 2025 at 10:48 UTC
Jump to comment: Most recent
Just saw the following code in Klaro and think that totally makes sense:
/**
* Implements hook_module_implements_alter().
*/
function klaro_module_implements_alter(&$implementations, $hook) {
switch ($hook) {
case 'js_alter':
case 'page_attachments_alter':
// Ensure our hooks run last to support libraries added by other modules.
$group = $implementations['klaro'];
unset($implementations['klaro']);
$implementations['klaro'] = $group;
break;
}
}
But the situation might be a bit different here for us, because we run these hooks in the submodules!
Comments
Comment #2
anybody