You are here

function hosting_sites_batch_process in Hostmaster (Aegir) 6

1 string reference to 'hosting_sites_batch_process'
hosting_site_list_form_submit in modules/hosting/site/hosting_site.module
Process hosting_site_list form submissions.

File

modules/hosting/site/hosting_site.module, line 670

Code

function hosting_sites_batch_process($site_id, $task, &$context) {
  if (!isset($context['sandbox']['progress'])) {
    $context['sandbox']['progress'] = 0;
  }
  $site = node_load($site_id);
  $batch =& batch_get();
  if (hosting_task_menu_access($site, $task)) {
    $batch['form_state']['storage']['passed'][$site->nid] = $site->title;
  }
  else {
    $batch['form_state']['storage']['failed'][$site->nid] = $site->title;
  }
}