Skip to:
Content

BuddyPress.org

Opened 17 years ago

Closed 17 years ago

#877 closed defect (bug) (worksforme)

Can't find a bp action when a new group is created

Reported by: burtadsit Owned by:
Priority: minor Milestone: 1.1
Component: Version:
Severity: Keywords:
Cc:

Description

This is in trunk bp. The closest I can find is the group object save method's actions of 'groups_group_before_save' and 'groups_group_after_save' but if I use the 'before' action it doesn't have a group id. If I use the 'after' action it has a group id but that doesn't tell me if it's a new group.

The fn groups_create_group() seems to be missing a do_action() call on new group creation.

Change History (3)

#1 @burtadsit
17 years ago

I also can't seem to find a groups_record_group() function that records the fact that a new group was created in sitewide activity. I guess I was looking for a fn similar to bp_blogs_record_blog().

#2 @apeatling
17 years ago

  • Milestone 1.0.4 → 1.1

Milestone 1.0.4 deleted

#3 @apeatling
17 years ago

  • Resolution → worksforme
  • Status new → closed

do_action( 'groups_create_group_step_save_' . $bp->groups->current_create_step );
do_action( 'groups_create_group_step_complete' );
do_action( 'groups_group_create_complete', $bp->groups->new_group_id );

Note: See TracTickets for help on using tickets.