You are here

function private_disabling in Private 6

Same name and namespace in other branches
  1. 5 private.module \private_disabling()
  2. 7.2 private.module \private_disabling()
  3. 7 private.module \private_disabling()

Simple function to make sure we don't respond with grants when disabling ourselves.

2 calls to private_disabling()
private_disable in ./private.module
Implementation of hook_disable().
private_node_access_records in ./private.module
Implementation of hook_node_access_records().

File

./private.module, line 40
A tremendously simple access control module -- it allows users to mark individual nodes as private; users with 'access private content' perms can read these nodes, while others cannot.

Code

function private_disabling($set = NULL) {
  static $disabling = FALSE;
  if ($set !== NULL) {
    $disabling = $set;
  }
  return $disabling;
}