You are here

function hostingService_http_pack::view in Hosting 7.4

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

Overrides hostingService::view

File

web_pack/hosting_web_pack.service.inc, line 13

Class

hostingService_http_pack

Code

function view(&$render) {
  $render['master_servers'] = array(
    '#type' => 'item',
    '#title' => t('Master web servers'),
    '#markup' => theme('item_list', array(
      'items' => array_map('_hosting_node_link', array_intersect_key($this->master_servers, hosting_get_servers('http'))),
    )),
  );
  $render['slave_servers'] = array(
    '#type' => 'item',
    '#title' => t('Slave web servers'),
    '#markup' => theme('item_list', array(
      'items' => array_map('_hosting_node_link', array_intersect_key($this->slave_servers, hosting_get_servers('http'))),
    )),
  );
}