function hook_drush_pm_adjust_download_destination

3.x drush.api.php hook_drush_pm_adjust_download_destination(&$project, $release)

Adjust the location that a project should be downloaded to.

1 function implements hook_drush_pm_adjust_download_destination()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

pm_drush_pm_adjust_download_destination in commands/pm/
Built-in adjust-download-destination hook. This particular version of the hook will move modules that contain only drush commands to /usr/share/drush/commands if it exists, or $HOME/.drush if the site-wide location does not exist.


./drush.api.php, line 148
Documentation of the Drush API.


function hook_drush_pm_adjust_download_destination(&$project, $release) {
  if ($some_condition) {
    $project['project_install_location'] = '/path/to/install/to/' . basename($project['full_project_path']);