function apps_download_apps in Apps 7
Download all modules and library to a temp location.
Find all downloadables needed (which we do not have) and sets a batch for download. Then proccess that batch and returns to the current apps_install_next page
Parameters
string $app: The app modules to download
2 calls to apps_download_apps()
- apps_app_install in ./
apps.pages.inc - Callback for app install TODO: check to see the app is install able and then install TODO: should goto config page but pass on the current destination NOTE: it is expected that this page would be called with a drupal desination set
- apps_app_update in ./
apps.pages.inc - Callback for app update.
File
- ./
apps.installer.inc, line 17 - installer.inc hold all of the function used to download apps and thier deps
Code
function apps_download_apps($app) {
$download_batch = apps_download_apps_batch(array(
$app,
));
batch_set($download_batch);
batch_process($_SESSION['apps_install_next']);
}