You are here

function hostingService_http_cluster::form in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 web_cluster/hosting_web_cluster.service.inc \hostingService_http_cluster::form()
  2. 7.3 web_cluster/hosting_web_cluster.service.inc \hostingService_http_cluster::form()

Overrides hostingService::form

File

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(),
  );
}