You are here

function nodeviewcount_node_load in Node view count 7

Same name and namespace in other branches
  1. 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;
}