function hosting_platform_node_load in Hostmaster (Aegir) 6
Implementation of hook_load().
Parameters
arg: Node's numeric nid
File
- modules/
hosting/ platform/ hosting_platform.module, line 351 - Platform node type definition.
Code
function hosting_platform_node_load($arg) {
if (!is_numeric($arg)) {
return FALSE;
}
if ($node = node_load($arg)) {
if ($node->type == 'platform') {
return $node;
}
}
return FALSE;
}