You are here

function hostingService_http_cluster::insert in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 web_cluster/hosting_web_cluster.service.inc \hostingService_http_cluster::insert()
  2. 7.3 web_cluster/hosting_web_cluster.service.inc \hostingService_http_cluster::insert()

Overrides hostingService::insert

File

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);
  }
}