function composer_manager_vendor_dir in Composer Manager 6
Same name and namespace in other branches
- 6.2 composer_manager.module \composer_manager_vendor_dir()
- 7.2 composer_manager.module \composer_manager_vendor_dir()
- 7 composer_manager.module \composer_manager_vendor_dir()
Returns the path to the vendor directory.
Return value
string
4 calls to composer_manager_vendor_dir()
- composer_manager_installed_packages_load in ./
composer_manager.admin.inc - Loads the composer.lock file if it exists.
- composer_manager_register_autoloader in ./
composer_manager.module - Registers the autoloader for all third-party packages.
- composer_manager_relative_vendor_dir in ./
composer_manager.writer.inc - Returns the vendor directory relative to the composer file directory.
- composer_manager_requirements in ./
composer_manager.install - Implements hook_requirements().
2 string references to 'composer_manager_vendor_dir'
- composer_manager_settings_form in ./
composer_manager.admin.inc - Administrative settings for the Composer Manager module.
- composer_manager_uninstall in ./
composer_manager.install - Implements hook_uninstall().
File
- ./
composer_manager.module, line 215 - Provides consolidated management of third-party Composer-compatible packages required by contributed modules.
Code
function composer_manager_vendor_dir() {
$vendor_dir = variable_get('composer_manager_vendor_dir', 'sites/all/vendor');
$is_absolute = 0 === strpos($vendor_dir, '/');
if (!$is_absolute) {
$vendor_dir = getcwd() . '/' . $vendor_dir;
}
return $vendor_dir;
}