You are here

function hostingService_http_cluster::insert in Hostmaster (Aegir) 6

Overrides hostingService::insert

File

modules/hosting/web_cluster/hosting_web_cluster.service.inc, line 47

Class

hostingService_http_cluster

Code

function insert() {
  parent::insert();
  foreach (array_filter($this->web_servers) as $web_server) {
    $record = array(
      'nid' => $this->server->nid,
      'vid' => $this->server->vid,
      'web_server_nid' => $web_server,
    );
    drupal_write_record('hosting_web_cluster', $record);
  }
}