You are here

function hosting_server_node_load in Hosting 6.2

Menu callback; loads a hosting_task_server node

@arg $arg a numeric nid

File

server/hosting_server.module, line 436

Code

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