function _zopim_visibility_user_test in Zopim Live Chat 7
Utility function to perform tracking visibility check for an user object.
Parameters
object $account: a user object containing an array of roles to check.
Return value
boolean a decision on if the current user is being tracked by Zopim.
1 call to _zopim_visibility_user_test()
- zopim_page_alter in ./
zopim.module - Implementation of hook_page_alter().
File
- ./
zopim.module, line 160
Code
function _zopim_visibility_user_test($account) {
$enabled = FALSE;
// Is current user a member of a role that should be tracked?
if (_zopim_visibility_roles($account)) {
$enabled = TRUE;
}
return $enabled;
}