function ggroup_add_subgroup_form in Group 7
Generate the subgroup creation form.
1 string reference to 'ggroup_add_subgroup_form'
- ggroup_menu in modules/
ggroup/ ggroup.router.inc - Implements hook_menu().
File
- modules/
ggroup/ forms/ ggroup.inc, line 14 - Subgroup creation form.
Code
function ggroup_add_subgroup_form($group, GroupType $group_type) {
$form_state = array();
$subgroup = entity_create('group', array(
'group' => $group->gid,
'type' => $group_type->name,
));
// Group creation / editing form lives in a separate file.
form_load_include($form_state, 'inc', 'group', 'forms/group');
return entity_ui_get_form('group', $subgroup, 'create', $form_state);
}