function radioactivity_node_exit in Radioactivity 6
File
- plugins/
radioactivity_node.module, line 219 - Node radioactivity
Code
function radioactivity_node_exit() {
drupal_bootstrap(DRUPAL_BOOTSTRAP_PATH);
global $user;
// We don't use this hook for anonymous users if hook_mode is not 'normal'. In other modes,
// other hooks are used, e.g., AJAX-hook for statically cached pages.
if ($user->uid == 0 && variable_get('radioactivity_node_anon_hook_mode', 'normal') != 'normal') {
return;
}
// we're only interested in full page views
if (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == '') {
radioactivity_node_user_node_view(arg(1));
}
}