function group_permissions in Group 7
Return the possible group permissions.
Return value
array An array where the keys are permission machine names and the values are the permission 'title' attributes as set in hook_group_permission(). Ideal for use with checkboxes or radios.
1 string reference to 'group_permissions'
- group_entity_property_info in ./
group.entity.inc - Implements hook_entity_property_info().
File
- helpers/
group.inc, line 159 - Group related helper functions.
Code
function group_permissions() {
$permissions = module_invoke_all('group_permission');
foreach ($permissions as &$permission) {
$permission = $permission['title'];
}
return $permissions;
}