You are here

function _oa_notification_user_blocked in Open Atrium Notifications 7.2

Helper function to return if user is blocking notifications of a space

Parameters

$account:

$space_id:

1 call to _oa_notification_user_blocked()
oa_notifications_render_view in ./oa_notifications.module
Render the read only version of the notifications listing.

File

./oa_notifications.module, line 1324

Code

function _oa_notification_user_blocked($account, $space_id) {
  $result = FALSE;
  if (isset($account->data['oa_messages']['message_notifications'][$space_id])) {
    $result = empty($account->data['oa_messages']['message_notifications'][$space_id]['methods']);
  }
  return $result;
}