You are here

function hosting_package_instance_create in Hosting 6.2

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

File

package/hosting_package.instance.inc, line 106
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, platform)\n      VALUES (%d, %d, '%s', %d, '%s', %f, %d, %d)", $instance->rid, $instance->package_id, $instance->filename, $instance->schema_version, $instance->version, $instance->version_code, $instance->status, $instance->platform);
  $instance->iid = db_last_insert_id('hosting_package_instance', 'iid');
  _hosting_package_instance_languages($instance);
}