You are here

function nodeviewcount_insert_node_view in Node view count 7

Same name and namespace in other branches
  1. 7.3 includes/nodeviewcount.api.inc \nodeviewcount_insert_node_view()
  2. 7.2 includes/nodeviewcount.api.inc \nodeviewcount_insert_node_view()

Insert node view.

Parameters

int $nid: The viewed node.

int $uid: The user who viewed node.

Return value

bool|int Count written records or FALSE.

2 calls to nodeviewcount_insert_node_view()
nodeviewcount_count_node_view_ajax in includes/pages/nodeviewcount.pages.inc
Page callback: Add node view ajax.
nodeviewcount_node_view in ./nodeviewcount.module
Implements hook_node_view().

File

includes/nodeviewcount.api.inc, line 14

Code

function nodeviewcount_insert_node_view($nid, $uid) {
  $node_view = nodeviewcount_db_insert_node_view($nid, $uid);
  return $node_view;
}