You are here

function notifications_forum_user_tab_access in Forum notifications 6

Access callback for the user forum notifications page.

File

./notifications_forum.module, line 66

Code

function notifications_forum_user_tab_access($type, $account) {

  // Global user permissions
  if (notifications_access_user($account) && notifications_subscription_type_enabled($type)) {

    // Check specifics for this subscription type
    $access = notifications_subscription_types($type, 'access');
    return $access ? user_access($access, $account) : TRUE;
  }
}