Ticket #2773: before-friends.patch
| File before-friends.patch, 1.1 KB (added by , 16 years ago) |
|---|
-
bp-friends.php
395 395 $friendship_id = BP_Friends_Friendship::get_friendship_id( $initiator_userid, $friend_userid ); 396 396 $friendship = new BP_Friends_Friendship( $friendship_id ); 397 397 398 do_action( 'friends_before_friendship_delete', $friendship_id, $initiator_userid, $friend_userid ); 399 398 400 // Remove the activity stream item for the user who canceled the friendship 399 401 friends_delete_activity( array( 'item_id' => $friendship_id, 'type' => 'friendship_accepted', 'user_id' => $bp->displayed_user->id ) ); 400 402 … … 605 607 function friends_remove_data( $user_id ) { 606 608 BP_Friends_Friendship::delete_all_for_user($user_id); 607 609 610 do_action( 'friends_before_remove_data', $user_id ); 611 608 612 /* Remove usermeta */ 609 613 delete_user_meta( $user_id, 'total_friend_count' ); 610 614 … … 657 661 add_action( 'friends_friendship_deleted', 'bp_core_clear_cache' ); 658 662 add_action( 'friends_friendship_requested', 'bp_core_clear_cache' ); 659 663 660 ?> 661 No newline at end of file 664 ?>
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)