function hook_drush_pm_download_destination_alter

8.0.x drush.api.php hook_drush_pm_download_destination_alter(&$project, $release)
6.x drush.api.php hook_drush_pm_download_destination_alter(&$project, $release)
7.x drush.api.php hook_drush_pm_download_destination_alter(&$project, $release)
4.x drush.api.php hook_drush_pm_download_destination_alter(&$project, $release)
5.x drush.api.php hook_drush_pm_download_destination_alter(&$project, $release)
master drush.api.php hook_drush_pm_download_destination_alter(&$project, $release)

Adjust the location a project should be copied to after being downloaded.

See @pm_drush_pm_download_destination_alter().

1 function implements hook_drush_pm_download_destination_alter()

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_download_destination_alter in commands/pm/download.pm.inc
Implementation of hook_drush_pm_download_destination_alter().

File

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

Code

function hook_drush_pm_download_destination_alter(&$project, $release) {
  if ($some_condition) {
    $project['project_install_location'] = '/path/to/install/to/' . $project['project_dir'];
  }
}