You are here

function hostingService_http_pack::form in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 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 21

Class

hostingService_http_pack

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