function hook_better_statistics_prelog in Better Statistics 7
Allows modules to react just before Better Statistics performs access log field data collection and just after all module.statistics.inc files have been loaded.
A good use of this is to call better_statistics_request_is_loggable().
Implementations of this hook should be placed in your module.statistics.inc.
Related topics
1 function implements hook_better_statistics_prelog()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
2 invocations of hook_better_statistics_prelog()
- better_statistics_better_statistics_ajax in ./
better_statistics.statistics.inc - Implements hook_better_statistics_ajax().
- better_statistics_exit in ./
better_statistics.module - Implements hook_exit().
File
- ./
better_statistics.api.php, line 229 - This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.
Code
function hook_better_statistics_prelog() {
// Never record statistics for user 1.
global $user;
if ($user->uid == 1) {
better_statistics_request_is_loggable(FALSE);
}
}