You are here

function hostingService_dns_master::form in Hostmaster (Aegir) 6

Overrides hostingService::form

File

modules/hosting/dns/hosting_dns.service.inc, line 32
Provide the hosting serivce classes for DNS integration.

Class

hostingService_dns_master
Helper class to factor together master functionality

Code

function form(&$form) {
  parent::form($form);
  $servers = hosting_get_servers('dns');
  unset($servers[$this->server->nid]);
  if (sizeof($servers)) {
    $form['slave_servers'] = array(
      '#title' => t('Slave DNS servers'),
      '#type' => 'checkboxes',
      '#options' => $servers,
      '#default_value' => isset($this->slave_servers) ? $this->slave_servers : array(),
    );
  }
  else {
    $form['slave_server'] = array(
      '#type' => 'value',
      '#value' => array(),
    );
  }
}