You are here

function hosting_platform_node_load in Hosting 6.2

Implementation of hook_load().

Parameters

arg: Node's numeric nid

File

platform/hosting_platform.module, line 485
Platform node type definition.

Code

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