function group_group_permission_access_settings in Group 7
Settings form for the group role access plugin.
1 string reference to 'group_group_permission_access_settings'
- group_permission.inc in plugins/
ctools/ access/ group_permission.inc - Plugin to provide access control based upon group permissions.
File
- plugins/
ctools/ access/ group_permission.inc, line 31 - Plugin to provide access control based upon group permissions.
Code
function group_group_permission_access_settings(&$form, &$form_state, $conf) {
$group_permissions = module_invoke_all('group_permission');
foreach ($group_permissions as &$permission) {
$permission = $permission['title'];
}
$form['settings']['permissions'] = array(
'#type' => 'checkboxes',
'#title' => t('Group permission'),
'#description' => t('Only the checked group permissions will be granted access.'),
'#options' => $group_permissions,
'#default_value' => $conf['permissions'],
'#required' => TRUE,
);
return $form;
}