You are here

function hosting_site_update_2 in Hosting 7.4

Same name and namespace in other branches
  1. 5 site/hosting_site.install \hosting_site_update_2()
  2. 6.2 site/hosting_site.install \hosting_site_update_2()
  3. 7.3 site/hosting_site.install \hosting_site_update_2()

Implements hook_update_N().

Retry all failed site installs, to evaluate where they might be successfully imported instead

File

site/hosting_site.install, line 162
Define database schema and update functions for the hosting_site module.

Code

function hosting_site_update_2() {
  include_once drupal_get_path('module', 'hosting_task') . '/hosting_task.module';
  $ret = array();
  $result = db_query("select n.nid from {node} n left join {hosting_task} t on n.vid = t.vid where t.task_type = 'install' and t.task_status > 1 and n.type='task'");
  while ($obj = db_fetch_object($result)) {
    hosting_task_retry($obj->nid);
  }
  return $ret;
}