You are here

function hosting_package_instance_create in Hostmaster (Aegir) 6

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

File

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

Code

function hosting_package_instance_create(&$instance) {
  db_query("INSERT INTO {hosting_package_instance} (\n      rid, package_id, filename,\n      schema_version, version, version_code, status)\n      VALUES (%d, %d, '%s', %d, '%s', %f, %d)", $instance->rid, $instance->package_id, $instance->filename, $instance->schema_version, $instance->version, $instance->version_code, $instance->status);
  $instance->iid = db_last_insert_id('hosting_package_instance', 'iid');
  _hosting_package_instance_languages($instance);
}