You are here

function private_disabling in Private 5

Same name and namespace in other branches
  1. 6 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 53
This is an example illustrating how to restrict access to nodes based on some criterion associated with the user.

Code

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