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

1 call to node_access_example_disabling()
node_access_example_disable in developer/examples/node_access_example.install
Implementation of hook_disable().

File

developer/examples/node_access_example.module, line 41
This is an example illustrating how to restrict access to nodes based on some criterion associated with the user.

Code

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