function magic_module_implements_alter in Magic 7.2
Implements hook_module_implements_alter().
File
- ./
magic.module, line 82 - Keep Frontend DRY; sprinkle it with MAGIC!
Code
function magic_module_implements_alter(&$implementations, $hook) {
switch ($hook) {
case 'css_alter':
case 'js_alter':
// Move our CSS and JS alter hooks to the end of the queue only followed
// by the ones from "locale" module (if enabled).
$group = $implementations['magic'];
unset($implementations['magic']);
$implementations['magic'] = $group;
if (isset($implementations['locale'])) {
$group = $implementations['locale'];
unset($implementations['locale']);
$implementations['locale'] = $group;
}
break;
case 'form_system_theme_settings_alter':
// Move our theme settings form alter hook to the beginning of the queue.
$group = $implementations['magic'];
unset($implementations['magic']);
$implementations = array(
'magic' => $group,
) + $implementations;
break;
}
}