You are here

function autoload_module_implements_alter in Autoload 7

Implements hook_module_implements_alter().

File

./autoload.module, line 60

Code

function autoload_module_implements_alter(array &$implementations, $hook) {

  // Make sure that the $implementations list is populated before altering
  // it, to work around a crash experienced by some people.
  if ('entity_info' === $hook && isset($implementations['autoload'])) {
    $implementations = array(
      'autoload' => $implementations['autoload'],
    ) + $implementations;
  }
}