function hosting_get_packages_by_type in Hosting 6.2
Same name and namespace in other branches
- 5 package/hosting_package.module \hosting_get_packages_by_type()
- 7.4 package/hosting_package.module \hosting_get_packages_by_type()
- 7.3 package/hosting_package.module \hosting_get_packages_by_type()
File
- package/
hosting_package.module, line 182
Code
function hosting_get_packages_by_type($type) {
$result = db_query("SELECT nid FROM {hosting_package} WHERE package_type = '%s'", $type);
if ($nid = db_result($result)) {
return node_load($nid);
}
return false;
}