function make_download_factory

8.0.x make.download.inc make_download_factory($name, $type, $download, $download_location)
6.x make.download.inc make_download_factory($name, $type, $download, $download_location)
7.x make.download.inc make_download_factory($name, $type, $download, $download_location)
5.x make.download.inc make_download_factory($name, $type, $download, $download_location)
master make.download.inc make_download_factory($name, $type, $download, $download_location)

Downloads the given package to the destination directory.

Return value

mixed The destination path on success, FALSE on failure.

1 call to make_download_factory()
DrushMakeProject::download in commands/make/make.project.inc
Download a project.

File

commands/make/make.download.inc, line 15
Download-specific functions for Drush Make.

Code

function make_download_factory($name, $type, $download, $download_location) {
  $function = 'make_download_' . $download['type'];
  if (function_exists($function)) {
    return $function($name, $type, $download, $download_location);
  }
  else {
    return FALSE;
  }
}