You are here

function advagg_relocate_module_implements_alter in Advanced CSS/JS Aggregation 7.2

Implements hook_module_implements_alter().

File

advagg_relocate/advagg_relocate.module, line 145
Advanced aggregation relocate module.

Code

function advagg_relocate_module_implements_alter(&$implementations, $hook) {

  // Move advagg_relocate to the top.
  if ($hook === 'advagg_get_js_file_contents_alter' && array_key_exists('advagg_relocate', $implementations)) {
    $item = array(
      'advagg_relocate' => $implementations['advagg_relocate'],
    );
    unset($implementations['advagg_relocate']);
    $implementations = array_merge($item, $implementations);
  }
}