You are here

function hosting_site_update_6207 in Hosting 7.4

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

Force a re-verification of all enabled sites, to re-generate their Apache virtualhost configurations to use correct handlers in the 'files' or 'private' subdirectories

File

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

Code

function hosting_site_update_6207() {
  $result = db_query("SELECT nid FROM {hosting_site} WHERE status=1");
  while ($site = db_fetch_object($result)) {
    hosting_add_task($site->nid, 'verify');
  }
  return $ret;
}