You are here

function module_grants_test_color_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_color_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_color_module_grants_realm_function_register_alter in tests/module_grants_test_color.module
Implement hook_module_grants_realm_function_register

... See full list

File

tests/module_grants_test_color.module, line 10
Dummy module implementing node access related hooks to test access interaction with the Module Grants module.

Code

function module_grants_test_color_get_grants() {
  return array(
    'color' => array(
      'blue' => 1,
      'green' => 2,
      'red' => 3,
    ),
  );
}