You are here

function hosting_platform_load in Hosting 5

Same name and namespace in other branches
  1. 6.2 platform/hosting_platform.module \hosting_platform_load()
  2. 7.4 platform/hosting_platform.module \hosting_platform_load()
  3. 7.3 platform/hosting_platform.module \hosting_platform_load()

Implementation of hook_load().

File

platform/hosting_platform.module, line 198
Platform node type definition

Code

function hosting_platform_load($node) {
  $additions = db_fetch_object(db_query('SELECT publish_path, verified, web_server FROM {hosting_platform} WHERE vid = %d', $node->vid));
  $iid = db_result(db_query("SELECT iid FROM hosting_package_instance i left join hosting_package p on p.nid=i.package_id WHERE p.package_type='platform' AND i.rid=%d", $node->nid));
  $additions->release = hosting_package_instance_load($iid);
  return $additions;
}