Changeset 3581
- Timestamp:
- 12/24/2010 07:38:08 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups.php
r3555 r3581 388 388 check_admin_referer( 'bp_forums_delete_topic' ); 389 389 390 do_action( 'groups_before_delete_forum_topic', $topic_id ); 391 390 392 if ( !groups_delete_group_forum_topic( $topic_id ) ) 391 393 bp_core_add_message( __( 'There was an error deleting the topic', 'buddypress'), 'error' ); … … 432 434 /* Check the nonce */ 433 435 check_admin_referer( 'bp_forums_delete_post' ); 436 437 do_action( 'groups_before_delete_forum_post', $post_id ); 434 438 435 439 if ( !groups_delete_group_forum_post( $bp->action_variables[4], $topic_id ) ) … … 910 914 if ( !check_admin_referer( 'groups_delete_group' ) ) 911 915 return false; 916 917 do_action( 'groups_before_group_deleted', $bp->groups->current_group->id ); 912 918 913 919 // Group admin has deleted the group, now do it. … … 1608 1614 return false; 1609 1615 1616 do_action( 'groups_before_delete_group', $group_id ); 1617 1610 1618 // Delete all group activity from activity streams 1611 1619 if ( bp_is_active( 'activity' ) ) … … 2119 2127 2120 2128 if ( bp_forums_delete_topic( array( 'topic_id' => $topic_id ) ) ) { 2129 do_action( 'groups_before_delete_group_forum_topic', $topic_id ); 2130 2121 2131 /* Delete the activity stream item */ 2122 2132 if ( function_exists( 'bp_activity_delete' ) ) { … … 2136 2146 2137 2147 if ( bp_forums_delete_post( array( 'post_id' => $post_id ) ) ) { 2148 do_action( 'groups_before_delete_group_forum_post', $post_id, $topic_id ); 2149 2138 2150 /* Delete the activity stream item */ 2139 2151 if ( function_exists( 'bp_activity_delete' ) ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)