function hosting_ip_view in Hostmaster (Aegir) 6
Display the ip address on the node. IP utility function for hook_view.
2 calls to hosting_ip_view()
- hosting_server_view in modules/
hosting/ server/ hosting_server.module - Implementation of hook_view().
- hosting_site_view in modules/
hosting/ site/ hosting_site.nodeapi.inc - Implementation of hook_view().
File
- modules/
hosting/ server/ hosting.ip.inc, line 27 - General IP address CRUD routines.
Code
function hosting_ip_view(&$node) {
$ip_list = isset($node->ip_addresses) ? _hosting_ip_list($node->ip_addresses) : array();
if (sizeof($ip_list)) {
$node->content['info']['ip_addresses'] = array(
'#type' => 'item',
'#title' => t('IP addresses'),
'#value' => implode('<br />', $ip_list),
);
}
}