function hosting_server_wildcard_load in Hosting 7.3
Same name and namespace in other branches
- 7.4 server/hosting_server.module \hosting_server_wildcard_load()
Menu wildcard loader callback.
Loads a hosting_server node.
@arg $arg a numeric nid
See also
File
- server/
hosting_server.module, line 653
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;
}