function gprofile_group_permission in Group 7
Implements hook_group_permission().
File
- modules/
gprofile/ gprofile.group.inc, line 10 - Hook implementations for the Group module.
Code
function gprofile_group_permission() {
$permissions = array();
foreach (gprofile_types() as $name => $gprofile_type) {
$replace = array(
'%profile' => $gprofile_type
->label(),
);
$permissions["use {$name} profile"] = array(
'title' => t('Use %profile profile', $replace),
'description' => t('Fill out %profile profile information', $replace),
'limit to' => GROUP_LIMIT_MEMBER,
);
}
return $permissions;
}