You are here

function hostingService_example_basic::view in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 example/example_service/hosting_example.service.inc \hostingService_example_basic::view()
  2. 7.3 example/example_service/hosting_example.service.inc \hostingService_example_basic::view()

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

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