You are here

function hosting_package_instance_update in Hosting 5

Same name and namespace in other branches
  1. 6.2 package/hosting_package.instance.inc \hosting_package_instance_update()
  2. 7.4 package/hosting_package.instance.inc \hosting_package_instance_update()
  3. 7.3 package/hosting_package.instance.inc \hosting_package_instance_update()
1 call to hosting_package_instance_update()
hosting_package_instance_save in package/hosting_package.instance.inc

File

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

Code

function hosting_package_instance_update(&$instance) {
  db_query("UPDATE {hosting_package_instance} SET\n    rid = %d, package_id = %d, filename = '%s',\n    schema_version = %d, version = '%s', status = %d\n    WHERE iid = %d", $instance->rid, $instance->package_id, $instance->filename, $instance->schema_version, $instance->version, $instance->status, $instance->iid);
  _hosting_package_instance_languages($instance);
}