You are here

function hosting_nodeapi_platform_load in Hosting 6.2

Implementation of hook_nodeapi_TYPE_OP().

This loads the platform/client access control mappings in the platform node.

@todo move this to the platform module (!!)

See also

hosting_nodeapi()

File

client/hosting_client.module, line 954

Code

function hosting_nodeapi_platform_load($node) {
  $result = db_query("SELECT cid FROM {hosting_platform_client_access} WHERE pid = %d", $node->nid);
  $additions = array();
  while ($record = db_fetch_object($result)) {
    $additions['clients'][$record->cid] = $record->cid;
  }
  return $additions;
}