function hosting_package_instance_create in Hosting 5
Same name and namespace in other branches
- 6.2 package/hosting_package.instance.inc \hosting_package_instance_create()
- 7.4 package/hosting_package.instance.inc \hosting_package_instance_create()
- 7.3 package/hosting_package.instance.inc \hosting_package_instance_create()
1 call to hosting_package_instance_create()
File
- package/
hosting_package.instance.inc, line 78 - API for mapping packages to various Hosting node types
Code
function hosting_package_instance_create(&$instance) {
$instance->iid = db_next_id("{hosting_package_instance}_iid");
db_query("INSERT INTO {hosting_package_instance} (\n iid, rid, package_id, filename,\n schema_version, version, status)\n VALUES (%d, %d, %d, '%s', %d, '%s', %d)", $instance->iid, $instance->rid, $instance->package_id, $instance->filename, $instance->schema_version, $instance->version, $instance->status);
_hosting_package_instance_languages($instance);
}