You are here

function _notifications_forum_enabled in Forum notifications 7

Checks if the forum vocabulary is enabled for subscriptions with notifications_tag.

2 calls to _notifications_forum_enabled()
notifications_forum_requirements in ./notifications_forum.module
Implements hook_requirements().
_notifications_forum_access in ./notifications_forum.module
Access check for determining if this user can add a taxonomy subscription.

File

./notifications_forum.module, line 404

Code

function _notifications_forum_enabled() {
  if ($vid = variable_get('forum_nav_vocabulary', 0)) {
    $allowed_vocabularies = variable_get('notifications_tags_vocabularies', array());
    return (bool) $allowed_vocabularies[$vid];
  }
  return FALSE;
}