function module_grants_is_disabled in Module Grants 7
Check if we should enable module grants' alternations
3 calls to module_grants_is_disabled()
- module_grants_query_entity_field_access_alter in ./
module_grants.module - Implements hook_query_TAG_alter(), replaces node.module's query alter hook.
- module_grants_query_node_access_alter in ./
module_grants.module - Implements hook_query_TAG_alter(), replaces node.module's query alter hook.
- _module_grants_node_access in ./
module_grants.node.inc - Copied from node_access(), with everything before module_invoke_all('node_access') removed (since our override occurs during module_invoke_all('node_access')). Other changes include: 1. Commented out the $rights caching code, we…
File
- ./
module_grants.module, line 120
Code
function module_grants_is_disabled() {
return variable_get('module_grants_OR_modules', FALSE) || count(module_implements('node_grants')) <= 1;
}