You are here

function hosting_client_disabling in Hosting 5

Same name and namespace in other branches
  1. 6.2 client/hosting_client.access.inc \hosting_client_disabling()
  2. 7.4 client/hosting_client.access.inc \hosting_client_disabling()
  3. 7.3 client/hosting_client.access.inc \hosting_client_disabling()

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

1 call to hosting_client_disabling()
hosting_client_node_access_records in client/hosting_client.access.inc
Implementation of hook_node_access_records().

File

client/hosting_client.access.inc, line 128
Control client node access

Code

function hosting_client_disabling($set = NULL) {
  static $disabling = false;
  if ($set !== NULL) {
    $disabling = $set;
  }
  return $disabling;
}