function hosting_package_instance_update in Hosting 7.3
Same name and namespace in other branches
- 5 package/hosting_package.instance.inc \hosting_package_instance_update()
- 6.2 package/hosting_package.instance.inc \hosting_package_instance_update()
- 7.4 package/hosting_package.instance.inc \hosting_package_instance_update()
@todo Please document this function.
See also
1 call to hosting_package_instance_update()
- hosting_package_instance_save in package/
hosting_package.instance.inc - @todo Please document this function.
File
- package/
hosting_package.instance.inc, line 115 - API for mapping packages to various Hosting node types
Code
function hosting_package_instance_update(&$instance) {
$id = db_update('hosting_package_instance')
->fields(array(
'rid' => $instance->rid,
'package_id' => $instance->package_id,
'filename' => $instance->filename,
'schema_version' => $instance->schema_version,
'version' => $instance->version,
'version_code' => $instance->version_code,
'status' => $instance->status,
'platform' => $instance->platform,
))
->condition('iid', $instance->iid)
->execute();
_hosting_package_instance_languages($instance);
}