Unverified Commit a360f53a authored by Jorrit's avatar Jorrit Committed by GitHub

Set bundle form value in group permissions form

$form['bundle']['#value'] is now also set when the group permissions form is displayed for a single group.
parent 0c37d9e3
......@@ -720,6 +720,7 @@ function og_ui_admin_permissions($form, $form_state, $group_type = '', $gid = 0,
if ($gid) {
og_set_breadcrumb($group_type, $gid, array(l(t('Group'), "$group_type/$gid/group")));
list(, , $bundle) = entity_extract_ids($group_type, entity_load_single($group_type, $gid));
}
$form['group_type'] = array('#type' => 'value', '#value' => $group_type);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment