You are here

function _hotjar_check_user in Hotjar 6

Same name and namespace in other branches
  1. 7 hotjar.module \_hotjar_check_user()

Check Hotjar code should be added for user.

1 call to _hotjar_check_user()
hotjar_add_js in ./hotjar.module
Insert JavaScript to the appropriate scope/region of the page.

File

./hotjar.module, line 155
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;
}