You are here

function composer_manager_module_implements_alter in Composer Manager 7.2

Same name and namespace in other branches
  1. 7 composer_manager.module \composer_manager_module_implements_alter()

Implements hook_module_implements_alter().

File

./composer_manager.module, line 26
Provides consolidated management of third-party Composer-compatible packages required by contributed modules.

Code

function composer_manager_module_implements_alter(&$implementations, $hook) {

  // We want to place composer_manager first for boot to ensure that the
  // autoloader is registered before other modules.
  if ($hook == 'boot' && isset($implementations['composer_manager'])) {
    $impl = $implementations['composer_manager'];
    unset($implementations['composer_manager']);
    $implementations = array(
      'composer_manager' => $impl,
    ) + $implementations;
  }
}