You are here

function og_access_disabling in Organic groups 5

Same name and namespace in other branches
  1. 5.8 og_access.install \og_access_disabling()
  2. 5.3 og_access.install \og_access_disabling()
  3. 5.7 og_access.install \og_access_disabling()

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

1 call to og_access_disabling()
og_access_disable in ./og_access.install
Implementation of hook_disable().

File

./og_access.install, line 48

Code

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