function private_content_disabling in Private 8.2
Same name and namespace in other branches
- 8 private_content.module \private_content_disabling()
Simple function to make sure we don't respond with grants when disabling ourselves.
1 call to private_content_disabling()
- private_content_node_access_records in ./
private_content.module - Implements hook_node_access_records().
File
- ./
private_content.module, line 56 - 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_content_disabling($set = NULL) {
static $disabling = FALSE;
if ($set !== NULL) {
$disabling = $set;
}
return $disabling;
}