function _heartbeat_activity_stream_delete_access in Heartbeat 6.4
Helper function to check if a user has access to edit/delete buttons
2 calls to _heartbeat_activity_stream_delete_access()
- heartbeatParser::build_sets in includes/
heartbeatparser.inc - build sets of messages
- _heartbeat_message_delete_access in ./
heartbeat.common.inc - Helper function to check if a user has access to delete a message
File
- ./
heartbeat.common.inc, line 114 - Commonly functions used in heartbeat
Code
function _heartbeat_activity_stream_delete_access() {
if (variable_get('heartbeat_activity_stream_delete', 1)) {
return user_access('delete heartbeat activity logs');
}
return FALSE;
}