function drush_drupal_sitewide_directory

8.0.x environment.inc drush_drupal_sitewide_directory($major_version = NULL)
6.x environment.inc drush_drupal_sitewide_directory($major_version = NULL)
7.x environment.inc drush_drupal_sitewide_directory($major_version = NULL)
master environment.inc drush_drupal_sitewide_directory($major_version = NULL)

Returns the sitewide Drupal directory for extensions.

3 calls to drush_drupal_sitewide_directory()
drush_make in commands/make/make.drush.inc
Drush callback; make based on the makefile.
_core_path_aliases in commands/core/core.drush.inc
_pm_download_destination in commands/pm/download.pm.inc
Returns the best destination for a particular download type we can find.

File

includes/environment.inc, line 838
Functions used by drush to query the environment and setting the current configuration.

Code

function drush_drupal_sitewide_directory($major_version = NULL) {
  if (!$major_version) {
    $major_version = drush_drupal_major_version();
  }
  return ($major_version < 8) ? 'sites/all' : '';
}