function module_grants_test_animal_get_grants in Module Grants 7
@file Dummy module implementing node access related hooks to test access interaction with the Module Grants module.
8 calls to module_grants_test_animal_get_grants()
- ModuleGrantsEntityTestCase::testNodeViewAllAccess in module_grants_entity/
module_grants_entity.test - ModuleGrantsEntityTestCase::testViewAllNodesFunction in module_grants_entity/
module_grants_entity.test - ModuleGrantsViewOpTestCase::doViewOpTestWithModuleGrantsOff in ./
module_grants.test - ModuleGrantsViewOpTestCase::testViewOpWithModuleGrantsOnAndViewAll in ./
module_grants.test - module_grants_test_animal_module_grants_realm_function_register_alter in tests/
module_grants_test_animal.module - Implement hook_module_grants_realm_function_register
File
- tests/
module_grants_test_animal.module, line 10 - Dummy module implementing node access related hooks to test access interaction with the Module Grants module.
Code
function module_grants_test_animal_get_grants() {
return array(
'pets' => array(
'cat' => 1,
'dog' => 2,
'fish' => 3,
),
'farm' => array(
'horse' => 1,
'cow' => 2,
),
);
}