You are here

function hostingService_http_cluster::form in Hostmaster (Aegir) 6

Overrides hostingService::form

File

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

Class

hostingService_http_cluster

Code

function form(&$form) {
  parent::form($form);
  $servers = hosting_get_servers('http');
  unset($servers[$this->server->nid]);
  $form['web_servers'] = array(
    '#title' => t('Servers'),
    '#type' => 'checkboxes',
    '#options' => $servers,
    '#default_value' => isset($this->web_servers) ? $this->web_servers : array(),
  );
}