Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/20/2011 06:25:30 PM (14 years ago)
Author:
djpaul
Message:

Add before delete hooks to Friends and Activity components (see #2773). Props kunalb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-loader.php

    r3757 r3772  
    380380    $friendship    = new BP_Friends_Friendship( $friendship_id );
    381381
     382    do_action( 'friends_before_friendship_delete', $friendship_id, $initiator_userid, $friend_userid );
     383
    382384    // Remove the activity stream item for the user who canceled the friendship
    383385    friends_delete_activity( array( 'item_id' => $friendship_id, 'type' => 'friendship_accepted', 'user_id' => $bp->displayed_user->id ) );
     
    590592    global $bp;
    591593
     594    do_action( 'friends_before_remove_data', $user_id );
     595
    592596    BP_Friends_Friendship::delete_all_for_user($user_id);
    593597
Note: See TracChangeset for help on using the changeset viewer.