You are here

function hostingService_example_basic::view in Hostmaster (Aegir) 6

Display settings on the server node page.

Modify the reference passed to the method to add additional implementation specific fields to be displayed.

Parameters

A reference to the associative array of the subsection of the page reserved for this service implementation.

Overrides hostingService::view

File

modules/hosting/example/hosting_example.service.inc, line 97
Example service implementation for the hosting front end.

Class

hostingService_example_basic
An implementation of the example service type, registered with hook_hosting_service.

Code

function view(&$render) {

  // REMEMBER TO CALL THE PARENT!
  parent::view($render);
  $render['example_field'] = array(
    '#type' => 'item',
    '#title' => t('Example field'),
    // Remember to pass the display through filter_xss!
    '#value' => filter_xss($this->example_field),
  );
}