You are here

function hosting_package_node_load in Hosting 6.2

File

package/hosting_package.module, line 35

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