You are here

function book_access_enabled in Book access 5

Helper function.

2 calls to book_access_enabled()
book_access_disable in ./book_access.install
Implements hook_disable().
book_access_node_access_records in ./book_access.module
Implements hook_node_access_records().

File

./book_access.module, line 285
Allows access control for Drupal book nodes.

Code

function book_access_enabled($set = NULL) {
  static $enabled = TRUE;
  if (isset($set)) {
    $enabled = $set;
  }
  return $enabled;
}