function hosting_site_node_load in Hosting 6.2
Implementation of hook_load().
Parameters
arg: Node's numeric nid
File
- site/
hosting_site.module, line 121
Code
function hosting_site_node_load($arg) {
if (!is_numeric($arg)) {
return FALSE;
}
if ($node = node_load($arg)) {
if ($node->type == 'site') {
return $node;
}
}
return FALSE;
}