function hostingService_http_pack::insert in Hostmaster (Aegir) 6
Overrides hostingService::insert
File
- modules/
hosting/ web_pack/ hosting_web_pack.service.inc, line 65
Class
Code
function insert() {
parent::insert();
foreach (array_filter($this->master_servers) as $web_server) {
$record = array(
'nid' => $this->server->nid,
'vid' => $this->server->vid,
'web_server_nid' => $web_server,
'type' => 'master',
);
drupal_write_record('hosting_web_pack', $record);
}
foreach (array_filter($this->slave_servers) as $web_server) {
$record = array(
'nid' => $this->server->nid,
'vid' => $this->server->vid,
'web_server_nid' => $web_server,
'type' => 'slave',
);
drupal_write_record('hosting_web_pack', $record);
}
}