function group_type_add_role_form in Group 7
Wrapper around group_role_form().
Called from hook_menu() to dynamically prepopulate the group type the newly created group role belongs to.
See also
GroupTypeUIController::hook_menu()
1 string reference to 'group_type_add_role_form'
- GroupTypeUIController::hook_menu in classes/
group_type.ui_controller.inc - Provides definitions for implementing hook_menu().
File
- admin/
group_role.inc, line 15 - Group role editing UI.
Code
function group_type_add_role_form(GroupType $group_type) {
$group_role = entity_create('group_role', array(
'type' => $group_type->name,
'global' => 0,
));
return entity_ui_get_form('group_role', $group_role, 'add');
}