function _og_role_watchdog_node_grants_access in Role Watchdog 7.2
Same name and namespace in other branches
- 6.2 modules/og_role_watchdog/og_role_watchdog.module \_og_role_watchdog_node_grants_access()
- 6 modules/og_role_watchdog/og_role_watchdog.module \_og_role_watchdog_node_grants_access()
- 7 modules/og_role_watchdog/og_role_watchdog.module \_og_role_watchdog_node_grants_access()
Access callback for viewing role grants page for one group.
1 string reference to '_og_role_watchdog_node_grants_access'
- og_role_watchdog_menu in modules/
og_role_watchdog/ og_role_watchdog.module
File
- modules/
og_role_watchdog/ og_role_watchdog.module, line 297 - Logs changes to user roles.
Code
function _og_role_watchdog_node_grants_access($node) {
return og_is_group_type('node', $node->type) && node_access('view', $node) && user_access('view role history');
}