function better_statistics_module_implements_alter in Better Statistics 7
Implements hook_module_implements_alter().
Ensures this module fires before Statistics' exit hook so that we don't double up on data. Note we're not removing Statistics' hook entirely because Statistics also handles node count data.
File
- ./
better_statistics.module, line 82 - Drupal hook implementations for the Better Statistics module.
Code
function better_statistics_module_implements_alter(&$implementations, $hook) {
if ($hook == 'exit') {
// Ensure our hook fires before statistics.
$implementations['better_statistics'] = -1;
}
}