function hostingService_dns_master::load in Hosting 6.2
Overrides hostingService::load
File
- dns/
hosting_dns.service.inc, line 54 - Provide the hosting serivce classes for DNS integration.
Class
- hostingService_dns_master
- Helper class to factor together master functionality
Code
function load() {
parent::load();
$slave_servers = array();
$result = db_query('SELECT slave_nid FROM {hosting_dns_slaves} WHERE master_vid = %d', $this->server->vid);
while ($slave_server = db_fetch_object($result)) {
$slave_servers[] = $slave_server->slave_nid;
}
$this
->setValues(array(
'slave_servers' => drupal_map_assoc($slave_servers),
));
}