function _zopim_visibility_user in Zopim Live Chat 6
Same name and namespace in other branches
- 6.2 zopim.module \_zopim_visibility_user()
Tracking visibility check for an user object.
Parameters
$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()
- zopim_footer in ./
zopim.module
File
- ./
zopim.module, line 117
Code
function _zopim_visibility_user($account) {
$enabled = FALSE;
// Is current user a member of a role that should be tracked?
if (_zopim_visibility_roles($account)) {
$enabled = TRUE;
}
return $enabled;
}