Changeset 4605 for trunk/bp-friends/bp-friends-functions.php
- Timestamp:
- 07/04/2011 05:50:22 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-functions.php
r4558 r4605 32 32 if ( !$force_accept ) { 33 33 // Add the on screen notification 34 bp_ members_add_notification( $friendship->initiator_user_id, $friendship->friend_user_id, $bp->friends->id, 'friendship_request' );34 bp_core_add_notification( $friendship->initiator_user_id, $friendship->friend_user_id, $bp->friends->id, 'friendship_request' ); 35 35 36 36 // Send the email notification … … 80 80 81 81 // Remove the friend request notice 82 bp_ members_delete_notifications_by_item_id( $friendship->friend_user_id, $friendship->initiator_user_id, $bp->friends->id, 'friendship_request' );82 bp_core_delete_notifications_by_item_id( $friendship->friend_user_id, $friendship->initiator_user_id, $bp->friends->id, 'friendship_request' ); 83 83 84 84 // Add a friend accepted notice for the initiating user 85 bp_ members_add_notification( $friendship->friend_user_id, $friendship->initiator_user_id, $bp->friends->id, 'friendship_accepted' );85 bp_core_add_notification( $friendship->friend_user_id, $friendship->initiator_user_id, $bp->friends->id, 'friendship_accepted' ); 86 86 87 87 $initiator_link = bp_core_get_userlink( $friendship->initiator_user_id ); … … 126 126 if ( !$friendship->is_confirmed && BP_Friends_Friendship::reject( $friendship_id ) ) { 127 127 // Remove the friend request notice 128 bp_ members_delete_notifications_by_item_id( $friendship->friend_user_id, $friendship->initiator_user_id, $bp->friends->id, 'friendship_request' );128 bp_core_delete_notifications_by_item_id( $friendship->friend_user_id, $friendship->initiator_user_id, $bp->friends->id, 'friendship_request' ); 129 129 130 130 do_action_ref_array( 'friends_friendship_rejected', array( $friendship_id, &$friendship ) ); … … 279 279 280 280 // Remove friendship requests FROM user 281 bp_ members_delete_notifications_from_user( $user_id, $bp->friends->id, 'friendship_request' );281 bp_core_delete_notifications_from_user( $user_id, $bp->friends->id, 'friendship_request' ); 282 282 283 283 do_action( 'friends_remove_data', $user_id );
Note: See TracChangeset
for help on using the changeset viewer.