function hosting_get_package in Hostmaster (Aegir) 6
2 calls to hosting_get_package()
- hosting_get_default_profile in modules/
hosting/ package/ hosting_package.module - hosting_package_sync in modules/
hosting/ package/ hosting_package.module - Sync the package and package release nodes with the information retrieved from the verify task
File
- modules/
hosting/ package/ hosting_package.module, line 245
Code
function hosting_get_package($short_name) {
$result = db_query("SELECT nid FROM {hosting_package} WHERE short_name = '%s'", $short_name);
if ($nid = db_result($result)) {
return node_load($nid);
}
return false;
}