You are here

function hosting_server_node_load in Hostmaster (Aegir) 6

Menu callback; loads a hosting_task_server node

@arg $arg a numeric nid

File

modules/hosting/server/hosting_server.module, line 398

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