function _notifications_forum_access in Forum notifications 7
Access check for determining if this user can add a taxonomy subscription.
4 calls to _notifications_forum_access()
- notifications_forum_menu_local_tasks_alter in ./
notifications_forum.module - Implements function for hook_menu_local_tasks_alter().
- notifications_forum_node_view in ./
notifications_forum.module - notifications_forum_preprocess_forum_list in ./
notifications_forum.module - Preprocess function for theme_forum_list().
- notifications_forum_preprocess_views_view__advanced_forum_topic_list in ./
notifications_forum.module - Preprocess function for themek_preprocess_views_view__advanced_forum_topic_list().
File
- ./
notifications_forum.module, line 166
Code
function _notifications_forum_access($account = NULL) {
global $user;
if (is_null($account)) {
$account = $user;
}
return _notifications_forum_enabled() && notifications_subscription_type_enabled('taxonomy_term') && user_access('create subscriptions', $account) && user_access('subscribe to taxonomy terms', $account);
}