function hosting_get_package in Hosting 6.2
Same name and namespace in other branches
- 5 package/hosting_package.module \hosting_get_package()
- 7.4 package/hosting_package.module \hosting_get_package()
- 7.3 package/hosting_package.module \hosting_get_package()
2 calls to hosting_get_package()
- hosting_get_default_profile in package/
hosting_package.module - hosting_package_sync in package/
hosting_package.module - Sync the package and package release nodes with the information retrieved from the verify task
File
- package/
hosting_package.module, line 204
Code
function hosting_get_package($short_name, $type) {
$result = db_query("SELECT nid FROM {hosting_package} WHERE short_name = '%s' AND package_type = '%s'", $short_name, $type);
if ($nid = db_result($result)) {
return node_load($nid);
}
return false;
}