You are here

function hosting_client_node_load in Hostmaster (Aegir) 6

Implementation of hook_load().

Parameters

$arg: Node's numeric nid

File

modules/hosting/client/hosting_client.module, line 460

Code

function hosting_client_node_load($arg) {
  if (!is_numeric($arg)) {
    return FALSE;
  }
  if ($node = node_load($arg)) {
    if ($node->type == 'client') {
      return $node;
    }
  }
  return FALSE;
}