function hosting_site_wildcard_load in Hosting 7.4
Same name and namespace in other branches
- 7.3 site/hosting_site.module \hosting_site_wildcard_load()
Menu wildcard loader callback.
Loads a hosting_site node.
Parameters
arg: Node's numeric nid
Return value
object|bool
See also
File
- site/
hosting_site.module, line 172 - Contains hook implementations for Hosting site module.
Code
function hosting_site_wildcard_load($arg) {
if (!is_numeric($arg)) {
return FALSE;
}
if ($node = node_load($arg)) {
if ($node->type == 'site') {
return $node;
}
}
return FALSE;
}