You are here

function hosting_client_node_load in Hosting 6.2

Implementation of hook_load().

Parameters

$arg: Node's numeric nid

File

client/hosting_client.module, line 457

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