You are here

function forum_access_enabled in Forum Access 7

Same name and namespace in other branches
  1. 8 forum_access.module \forum_access_enabled()
  2. 5 forum_access.module \forum_access_enabled()
  3. 6 forum_access.module \forum_access_enabled()

This is also required by ACL module.

2 calls to forum_access_enabled()
forum_access_disable in ./forum_access.install
Implements hook_disable().
forum_access_node_access_records in ./forum_access.module
Implements hook_node_access_records().

File

./forum_access.module, line 599
forum_access.module

Code

function forum_access_enabled($set = NULL) {
  static $enabled = TRUE;

  // not drupal_static!
  if ($set !== NULL) {
    $enabled = $set;
  }
  return $enabled;
}