function nodeviewcount_node_load in Node view count 7
Same name and namespace in other branches
- 7.3 nodeviewcount.module \nodeviewcount_node_load()
Menu argument loader: Current node.
Parameters
int $nid: Node id.
Return value
bool|mixed Node object or FALSE.
File
- ./
nodeviewcount.module, line 42
Code
function nodeviewcount_node_load($nid) {
if (is_numeric($nid)) {
$node = node_load($nid);
if ($node) {
return $node;
}
}
return FALSE;
}