You are here

function hosting_package_node_load in Hostmaster (Aegir) 6

File

modules/hosting/package/hosting_package.module, line 74

Code

function hosting_package_node_load($arg) {
  if (!is_numeric($arg)) {
    return FALSE;
  }
  if ($node = node_load($arg)) {
    if (in_array($node->type, array(
      'site',
      'platform',
    ))) {
      return $node;
    }
  }
  return FALSE;
}