You are here

function taxonomy_access_disabling in Taxonomy Access Control 5.2

Same name and namespace in other branches
  1. 5 taxonomy_access.module \taxonomy_access_disabling()

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

2 calls to taxonomy_access_disabling()
taxonomy_access_disable in ./taxonomy_access.module
Implementation of hook_disable().
taxonomy_access_node_access_records in ./taxonomy_access.module
Implementation of hook_node_access_records(). TODO: change query to behave properly when no term or vocab record is present

File

./taxonomy_access.module, line 106
Allows administrators to specify how each category (in the taxonomy) can be used by various roles.

Code

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