You are here

function _statistics_advanced_is_node_visit in Statistics Advanced 6

Determine if this page request is a node visit (e.g. node/x).

2 calls to _statistics_advanced_is_node_visit()
statistics_advanced_boot in ./statistics_advanced.module
Implementation of hook_boot().
statistics_advanced_exit in ./statistics_advanced.module
Implementation of hook_exit().

File

./statistics_advanced.module, line 141
Adds advanced settings and features for the core Statistics module.

Code

function _statistics_advanced_is_node_visit() {
  static $is_node_visit;
  if (!isset($is_node_visit)) {
    $is_node_visit = arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == '' && variable_get('statistics_count_content_views', 0);
  }
  return $is_node_visit;
}