You are here

function hosting_ip_load in Hosting 6.2

IP Utility function for hook_load.

1 call to hosting_ip_load()
hosting_server_load in server/hosting_server.module
Implementation of hook_load().

File

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

Code

function hosting_ip_load($node) {
  $ip_list = array();
  $result = db_query("SELECT id,ip_address FROM {hosting_ip_addresses} WHERE nid=%d ORDER BY id", $node->nid);
  while ($obj = db_fetch_object($result)) {
    $ip_list[$obj->id] = $obj->ip_address;
  }
  return $ip_list;
}