function hosting_package_instance_save in Hosting 7.4
Same name and namespace in other branches
- 5 package/hosting_package.instance.inc \hosting_package_instance_save()
- 6.2 package/hosting_package.instance.inc \hosting_package_instance_save()
- 7.3 package/hosting_package.instance.inc \hosting_package_instance_save()
@todo Please document this function.
See also
2 calls to hosting_package_instance_save()
- hosting_package_instance_sync in package/
hosting_package.instance.inc - Generate instances to reference nodes to releases.
- hosting_package_update_5 in package/
hosting_package.install - Implements hook_update_N().
File
- package/
hosting_package.instance.inc, line 255 - 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);
}
}