function group_type_add_role_access in Group 7
Access callback: Checks if a role can be added to a group type.
See also
GroupTypeUiController::hook_menu()
1 string reference to 'group_type_add_role_access'
- GroupTypeUIController::hook_menu in classes/
group_type.ui_controller.inc - Provides definitions for implementing hook_menu().
File
- ./
group.router.inc, line 86 - Contains all router functions for the Group module.
Code
function group_type_add_role_access(GroupType $group_type) {
return user_access('configure group module') && !entity_has_status('group_type', $group_type, ENTITY_FIXED);
}