Re: New Group creation fields
I just took a peek at the BP source, and it looks like the group *has* been created by the point in question, but the information hasn’t been loaded into $bp->groups->current_group yet. Here’s a variant on the code that might work (or something like it):
`
function bbg_save_extra_group_details() {
global $bp;
if ( $bp->groups->new_group_id )
$group_id = $bp->groups->new_group_id;
else
$group_id = $bp->groups->current_group->id;
if ( ‘yes’ == groups_get_groupmeta( $group_id, ‘is_this_group_a’ ) ) {
// do some group A stuff
} else {
// do some group B stuff
}
}
`