You are here

function hosting_nodeapi_platform_load in Hostmaster (Aegir) 6

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

modules/hosting/client/hosting_client.module, line 861

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;
}