You are here

function hosting_ip_load in Hostmaster (Aegir) 6

IP Utility function for hook_load.

2 calls to hosting_ip_load()
hosting_server_load in modules/hosting/server/hosting_server.module
Implementation of hook_load().
hosting_site_load in modules/hosting/site/hosting_site.nodeapi.inc
Implementation of hook_load().

File

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

Code

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