function hostingService_http_pack::form in Hostmaster (Aegir) 6
Overrides hostingService::form
File
- modules/
hosting/ web_pack/ hosting_web_pack.service.inc, line 21
Class
Code
function form(&$form) {
parent::form($form);
$servers = hosting_get_servers('http');
unset($servers[$this->server->nid]);
$form['master_servers'] = array(
'#title' => t('Master servers'),
'#type' => 'checkboxes',
'#options' => $servers,
'#default_value' => isset($this->master_servers) ? $this->master_servers : array(),
);
$form['slave_servers'] = array(
'#title' => t('Slave servers'),
'#type' => 'checkboxes',
'#options' => $servers,
'#default_value' => isset($this->slave_servers) ? $this->slave_servers : array(),
);
}