function nodeviewcount_count_node_view_ajax in Node view count 7
Same name and namespace in other branches
- 7.3 includes/pages/nodeviewcount.pages.inc \nodeviewcount_count_node_view_ajax()
- 7.2 includes/pages/nodeviewcount.pages.inc \nodeviewcount_count_node_view_ajax()
Page callback: Add node view ajax.
Parameters
object $node: The node for counting.
object $user: The user for counting.
1 string reference to 'nodeviewcount_count_node_view_ajax'
- nodeviewcount_menu in ./
nodeviewcount.module - Implements hook_menu().
File
- includes/
pages/ nodeviewcount.pages.inc, line 11
Code
function nodeviewcount_count_node_view_ajax($node, $user) {
if ($node && $user) {
nodeviewcount_insert_node_view($node->nid, $user->uid);
}
}