function _heartbeat_message_has_access in Heartbeat 7
Same name and namespace in other branches
- 6.4 heartbeat.module \_heartbeat_message_has_access()
Helper function to check access on an Access type activity stream
1 string reference to '_heartbeat_message_has_access'
- heartbeat_menu in ./
heartbeat.module - Implements hook_menu().
File
- ./
heartbeat.module, line 1721 - Module file for heartbeat activity. Basic hook implementations and helper functions will be found here.
Code
function _heartbeat_message_has_access($heartbeatActivity) {
if (user_access('view Single activity stream') && $heartbeatActivity instanceof HeartbeatActivity) {
return $heartbeatActivity
->hasAccess($GLOBALS['user']);
}
return FALSE;
}