You are here

function hosting_subdirs_update_7001 in Hosting 7.3

Same name and namespace in other branches
  1. 7.4 subdirs/hosting_subdirs.install \hosting_subdirs_update_7001()

Verify all nginx servers, to re-generate server-wide vhosts.

File

subdirs/hosting_subdirs.install, line 37
Database schemas and update functions for the hosting_subdirs module.

Code

function hosting_subdirs_update_7001() {
  $servers = hosting_get_servers('http');
  $nodes = node_load_multiple(array_keys($servers));
  foreach ($nodes as $nid => $node) {
    if ($node->services['http']->type == 'nginx') {
      hosting_add_task($nid, 'verify');
    }
  }
}