composer_autoload.api.php in Composer Autoload 7
Shows the api functions for composer_autoload.
File
composer_autoload.api.phpView source
<?php
/**
* @file
* Shows the api functions for composer_autoload.
*
* @ingroup composer_autoload
* @{
*/
/**
* Allow modules to alter the list of loaders before they are cached.
*
* @param array $loaders
* Array of loaders to be cached.
*/
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]);
}
}
Functions
Name![]() |
Description |
---|---|
hook_composer_autoload_loaders_alter | Allow modules to alter the list of loaders before they are cached. |