You are here

function apps_run_install in Apps 7

The batch builder and processor for moving files to drupal.

taken from update_authorize_run_update builds a batch and process it for installing modules from the templocation

1 call to apps_run_install()
apps_install_downloads in ./apps.installer.inc
Move modules from there temp location in to the drupal tree.
1 string reference to 'apps_run_install'
apps_install_downloads in ./apps.installer.inc
Move modules from there temp location in to the drupal tree.

File

./apps.installer.inc, line 272
installer.inc hold all of the function used to download apps and thier deps

Code

function apps_run_install($filetransfer, $projects) {
  $operations = array();
  foreach ($projects as $project => $project_info) {
    $operations[] = array(
      'apps_update_authorize_batch_copy_project',
      array(
        $project_info['project'],
        $project_info['updater_name'],
        $project_info['local_url'],
        $filetransfer,
      ),
    );
  }
  $batch = array(
    'title' => t('Downloading apps'),
    'init_message' => t('Preparing to download apps.'),
    'operations' => $operations,
    'finished' => 'apps_update_authorize_update_batch_finished',
    'file' => drupal_get_path('module', 'apps') . '/apps.installer.inc',
  );
  batch_set($batch);

  // Invoke the batch via authorize.php.
  batch_process($_SESSION['apps_install_next']);
}