You are here

function hosting_ip_view in Hosting 6.2

Display the ip address on the node. IP utility function for hook_view.

1 call to hosting_ip_view()
hosting_server_view in server/hosting_server.module
Implementation of hook_view().

File

server/hosting.ip.inc, line 10
General IP address CRUD routines.

Code

function hosting_ip_view(&$node) {
  $ip_list = isset($node->ip_addresses) ? $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),
    );
  }
}