function hook_composer_autoload_loaders_alter in Composer Autoload 7
Allow modules to alter the list of loaders before they are cached.
Parameters
array $loaders: Array of loaders to be cached.
1 invocation of hook_composer_autoload_loaders_alter()
- composer_autoload_cache_rebuild in ./
composer_autoload.module - Rebuild composer autoload.php file list cache.
File
- ./
composer_autoload.api.php, line 17 - Shows the api functions for composer_autoload.
Code
function hook_composer_autoload_loaders_alter(array &$loaders) {
$key = array_search('sites/all/modules/custom/my_module/phpunit/vendor/utoload.php', $loaders);
if ($key !== FALSE) {
unset($loaders[$key]);
}
}