You are here

function hosting_get_package in Hosting 5

Same name and namespace in other branches
  1. 6.2 package/hosting_package.module \hosting_get_package()
  2. 7.4 package/hosting_package.module \hosting_get_package()
  3. 7.3 package/hosting_package.module \hosting_get_package()
1 call to hosting_get_package()
hosting_package_sync in package/hosting_package.module
Synch the package and package release nodes with the information retrieved from the verify task

File

package/hosting_package.module, line 169

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;
}