node_access_example_disabling

5 node_access_example.module node_access_example_disabling($set = NULL)

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

3 calls to node_access_example_disabling()

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;
}
Login or register to post comments