You are here

function hosting_package_instance_update in Hostmaster (Aegir) 6

1 call to hosting_package_instance_update()
hosting_package_instance_save in modules/hosting/package/hosting_package.instance.inc

File

modules/hosting/package/hosting_package.instance.inc, line 70
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', version_code = %f, status = %d\n    WHERE iid = %d", $instance->rid, $instance->package_id, $instance->filename, $instance->schema_version, $instance->version, $instance->version_code, $instance->status, $instance->iid);
  _hosting_package_instance_languages($instance);
}