module_grants_admin_configure |
./module_grants.admin.inc |
Menu callback for admin settings. |
|
1 |
module_grants_apply_subquery_for_node_query_node_access_alter |
./module_grants.module |
The core function of this module, applies node access grants condition to the node access query alter |
1 |
|
module_grants_by_module |
./module_grants.module |
Return a map, keyed by module name, of grant arrays (keys are realms, values are array of
grants) associated with the module, as returned by that module's hook_node_grants(). |
3 |
|
module_grants_clear_node_access_cache |
./module_grants.module |
|
1 |
|
module_grants_content_access_module_grants_realm_function_register_alter |
module_grants_content_access/module_grants_content_access.module |
Implement hook_module_grants_realm_function_register |
|
|
module_grants_enable |
./module_grants.install |
Implements hook_enable() |
|
|
module_grants_entity_entity_info_alter |
module_grants_entity/module_grants_entity.module |
Implements hook_entity_info_alter(). |
|
|
module_grants_entity_metadata_node_access |
module_grants_entity/module_grants_entity.module |
Access callback for the node entity.
Copied from entity_metadata_no_hook_node_access() in callbacks.inc |
|
1 |
module_grants_entity_module_implements_alter |
module_grants_entity/module_grants_entity.module |
Implement hook_module_implements_alter:
1. Move our hook_entity_info_alter to the last place |
|
|
module_grants_entity_test_entity_access_test_page |
tests/module_grants_entity_test.module |
Page callback for node access test page. |
|
1 |
module_grants_entity_test_menu |
tests/module_grants_entity_test.module |
Implements hook_menu(). |
|
|
module_grants_get_node_access_realms |
./module_grants.module |
Get the realms and # of records in node_access table for a node or for access all |
1 |
1 |
module_grants_get_node_access_realms_for_module |
./module_grants.module |
Check if a module has node_access record for a node or for access all
This is used in lenient mode, where if there's no node_access record from
a module, then we skip the access checking for this module. |
3 |
1 |
module_grants_get_node_access_result |
./module_grants.module |
The core function of this module, calculate result for node_access() |
1 |
|
module_grants_get_node_access_view_all_nodes_result |
./module_grants.module |
The core function of this module, calculate result for node_access_view_all_nodes() |
1 |
|
module_grants_help |
./module_grants.module |
Implementation of hook_help(). |
|
|
module_grants_install |
./module_grants.install |
Implementation of hook_install(). |
|
|
module_grants_invoke_node_access |
./module_grants.module |
Replicate node.module's $access = module_invoke_all('node_access', $node, $op, $account),
using the hook_node_access() saved in module_grants_set_node_access_implementations() |
1 |
|
module_grants_is_disabled |
./module_grants.module |
Check if we should enable module grants' alternations |
3 |
|
module_grants_is_realm_by_module |
./module_grants.module |
Check if realm belongs to module, copied from module_access |
2 |
|
module_grants_menu |
./module_grants.module |
Implementation of hook_menu(). |
|
|
module_grants_module_implements_alter |
./module_grants.module |
Implement hook_module_implements_alter:
1. Save other modules' hook_node_access, remove them so that only our hook is left
2. Remove node.module's hook_query_alter |
|
|
module_grants_node_access |
./module_grants.module |
Implement hook_node_access() to override default node_access() logic, we have ensured
this hook will be the last one to be called, it will not return NODE_ACCESS_IGNORE,
thus effectively skipped all the logic in node_access() after line 3032 |
|
|
module_grants_node_access_records_alter |
./module_grants.module |
Implements hook_node_access_records_alter to clear node_access related cache since
a change is about to be written to the node_access table |
|
|
module_grants_query_entity_field_access_alter |
./module_grants.module |
Implements hook_query_TAG_alter(), replaces node.module's query alter hook. |
|
|
module_grants_query_node_access_alter |
./module_grants.module |
Implements hook_query_TAG_alter(), replaces node.module's query alter hook. |
|
|
module_grants_requirements |
./module_grants.install |
Implements hook_requirements(). |
|
|
module_grants_set_node_access_implementations |
./module_grants.module |
Get/Set node access implementations in static and cache |
3 |
|
module_grants_test_access_hook_node_access |
tests/module_grants_test_access_hook.module |
Used for implement hook_node_access(). |
|
|
module_grants_test_access_hook_permission |
tests/module_grants_test_access_hook.module |
Used for implement hook_permission(). |
|
|
module_grants_test_animal_get_grants |
tests/module_grants_test_animal.module |
@file
Dummy module implementing node access related hooks to test access interaction with
the Module Grants module. |
8 |
|
module_grants_test_animal_module_grants_realm_function_register_alter |
tests/module_grants_test_animal.module |
Implement hook_module_grants_realm_function_register |
|
|
module_grants_test_animal_node_access_records |
tests/module_grants_test_animal.module |
Implements hook_node_access_records(). |
|
|
module_grants_test_animal_node_grants |
tests/module_grants_test_animal.module |
Implements hook_node_grants(). |
|
|
module_grants_test_animal_permission |
tests/module_grants_test_animal.module |
Implements hook_permission(). |
|
|
module_grants_test_color_get_grants |
tests/module_grants_test_color.module |
@file
Dummy module implementing node access related hooks to test access interaction with
the Module Grants module. |
8 |
|
module_grants_test_color_module_grants_realm_function_register_alter |
tests/module_grants_test_color.module |
Implement hook_module_grants_realm_function_register |
|
|
module_grants_test_color_node_access_records |
tests/module_grants_test_color.module |
Implements hook_node_access_records(). |
|
|
module_grants_test_color_node_grants |
tests/module_grants_test_color.module |
Implements hook_node_grants(). |
|
|
module_grants_test_color_permission |
tests/module_grants_test_color.module |
Implements hook_permission(). |
|
|
module_grants_test_number_get_grants |
tests/module_grants_test_number.module |
@file
Dummy module implementing node access related hooks to test access interaction with
the Module Grants module. |
8 |
|
module_grants_test_number_module_grants_realm_function_register_alter |
tests/module_grants_test_number.module |
Implement hook_module_grants_realm_function_register |
|
|
module_grants_test_number_node_access_records |
tests/module_grants_test_number.module |
Implements hook_node_access_records(). |
|
|
module_grants_test_number_node_grants |
tests/module_grants_test_number.module |
Implements hook_node_grants(). |
|
|
module_grants_test_number_permission |
tests/module_grants_test_number.module |
Implements hook_permission(). |
|
|
module_grants_uninstall |
./module_grants.install |
Implementation of hook_uninstall(). |
|
|
_modules_grants_prefix_match |
./module_grants.module |
|
1 |
|
_module_grants_apply_node_access_grants_conditions |
./module_grants.module |
Helper function to add condition for all realm |
3 |
|
_module_grants_get_node_access_query |
./module_grants.module |
|
1 |
|
_module_grants_get_node_access_view_all_nodes_query |
./module_grants.module |
|
1 |
|