You are here

function apps_profile_download_app_modules in Apps 7

Batch process apps download.

1 string reference to 'apps_profile_download_app_modules'
apps_profile_install_tasks in ./apps.profile.inc
Add install tasks to profile install tasks.

File

./apps.profile.inc, line 264
The install functions for the Apps module.

Code

function apps_profile_download_app_modules(&$install_state) {
  apps_include('installer');
  $apps = array();
  foreach ($_SESSION['apps'] as $id => $name) {
    $apps[] = $_SESSION['apps_manifest'][$id];
  }
  $batch = apps_download_apps_batch($apps);
  $batch['finished'] = 'apps_profile_download_batch_finished';
  return $batch;
}