You are here

function hosting_server_wildcard_load in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 server/hosting_server.module \hosting_server_wildcard_load()

Menu wildcard loader callback.

Loads a hosting_server node.

@arg $arg a numeric nid

See also

hosting_task_menu()

File

server/hosting_server.module, line 649

Code

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