function private_content_disabling in Private 8
Same name and namespace in other branches
- 8.2 private_content.module \private_content_disabling()
Simple function to make sure we don't respond with grants when disabling ourselves.
2 calls to private_content_disabling()
- private_content_disable in ./
private_content.module - Implements hook_disable().
- private_content_node_access_records in ./
private_content.module - Implements hook_node_access_records().
File
- ./
private_content.module, line 48 - 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;
}