function hostingService_http_cluster::form in Hosting 7.3
Same name and namespace in other branches
- 6.2 web_cluster/hosting_web_cluster.service.inc \hostingService_http_cluster::form()
- 7.4 web_cluster/hosting_web_cluster.service.inc \hostingService_http_cluster::form()
Overrides hostingService::form
File
- web_cluster/
hosting_web_cluster.service.inc, line 21
Class
Code
function form(&$form) {
parent::form($form);
$servers = hosting_get_servers('http');
if (isset($this->server->nid)) {
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(),
);
}