function private_disabling in Private 7
Same name and namespace in other branches
- 5 private.module \private_disabling()
- 6 private.module \private_disabling()
- 7.2 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 - Implements hook_disable().
- private_node_access_records in ./
private.module - Implements hook_node_access_records().
File
- ./
private.module, line 41 - 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;
}