function hostingService_example_basic::view in Hosting 7.4
Same name and namespace in other branches
- 6.2 example/hosting_example.service.inc \hostingService_example_basic::view()
- 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/
example_service/ hosting_example.service.inc, line 98 - 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!
'#markup' => filter_xss($this->example_field),
);
}