You are here

function hostingService_http_pack::form in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 web_pack/hosting_web_pack.service.inc \hostingService_http_pack::form()
  2. 7.3 web_pack/hosting_web_pack.service.inc \hostingService_http_pack::form()

Overrides hostingService::form

File

web_pack/hosting_web_pack.service.inc, line 26

Class

hostingService_http_pack

Code

function form(&$form) {
  parent::form($form);
  $servers = hosting_get_servers('http');
  if (isset($this->server->nid)) {
    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(),
  );
}