function _hotjar_check_user in Hotjar 7
Same name and namespace in other branches
- 6 hotjar.module \_hotjar_check_user()
Check Hotjar code should be added for user.
1 call to _hotjar_check_user()
- _hotjar_access in ./
hotjar.module - Determines whether we add tracking code to page.
File
- ./
hotjar.module, line 189 - Drupal Module: Hotjar.
Code
function _hotjar_check_user($account = NULL) {
if (!isset($account)) {
$account = $GLOBALS['user'];
}
$enabled = FALSE;
if (_hotjar_check_roles($account)) {
$enabled = TRUE;
}
return $enabled;
}