node_access_example_disabling

Versions
5
node_access_example_disabling($set = NULL)

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

Code

developer/examples/node_access_example.module, line 41

<?php
function node_access_example_disabling($set = NULL) {
  static $disabling = false;
  if ($set !== NULL) {
    $disabling = $set;
  }
  return $disabling;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.