You are here

function hosting_task_retry in Hosting 5

Same name and namespace in other branches
  1. 6.2 task/hosting_task.module \hosting_task_retry()
  2. 7.4 task/hosting_task.module \hosting_task_retry()
  3. 7.3 task/hosting_task.module \hosting_task_retry()
2 calls to hosting_task_retry()
hosting_site_update_2 in site/hosting_site.install
Retry all failed site installs, to evaluate where they might be successfully imported instead
hosting_task_retry_form_submit in task/hosting_task.module

File

task/hosting_task.module, line 71
Web server node type is defined here.

Code

function hosting_task_retry($task_id) {
  $node = node_load($task_id);
  if (!$node->queued) {
    drupal_set_message(t("The task is being retried and has been added to the hosting queue again"));
    hosting_task_log($node->vid, 'queue', t("The task is being retried and has been added to the hosting queue again"));
    $node->revision = FALSE;
    $node->queued = 1;
    node_save($node);
  }
}