You are here

function hook_hotjar_access_alter in Hotjar 7

Same name and namespace in other branches
  1. 8.2 hotjar.api.php \hook_hotjar_access_alter()
  2. 8 hotjar.api.php \hook_hotjar_access_alter()

Alter results of Hotjar access check results.

1 invocation of hook_hotjar_access_alter()
_hotjar_access in ./hotjar.module
Determines whether we add tracking code to page.

File

./hotjar.api.php, line 33
Hooks provided by the Hotjar module.

Code

function hook_hotjar_access_alter(&$results) {

  // Force disable for frontpage.
  $results['my_module_check'] = current_path() == '<front>' ? HOTJAR_ACCESS_DENY : HOTJAR_ACCESS_ALLOW;
}