You are here

function hosting_package_instance_save in Hostmaster (Aegir) 6

3 calls to hosting_package_instance_save()
hosting_package_instance_sync in modules/hosting/package/hosting_package.instance.inc
Generate instances to reference nodes to releases.
hosting_package_update_5 in modules/hosting/package/hosting_package.install
Denormalize package and package release node types
hostmaster_bootstrap in ./hostmaster.profile

File

modules/hosting/package/hosting_package.instance.inc, line 169
API for mapping packages to various Hosting node types

Code

function hosting_package_instance_save(&$instance) {
  if (!isset($instance->iid)) {
    hosting_package_instance_create($instance);
  }
  else {
    hosting_package_instance_update($instance);
  }
}