Changeset 3772
- Timestamp:
- 01/20/2011 06:25:30 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-actions.php
r3751 r3772 87 87 88 88 // Call the action before the delete so plugins can still fetch information about it 89 do_action( 'bp_activity_ action_delete_activity', $activity_id, $activity->user_id );89 do_action( 'bp_activity_before_action_delete_activity', $activity_id, $activity->user_id ); 90 90 91 91 // Delete the activity item and provide user feedback … … 94 94 else 95 95 bp_core_add_message( __( 'There was an error when deleting that activity', 'buddypress' ), 'error' ); 96 97 do_action( 'bp_activity_action_delete_activity', $activity_id, $activity->user_id ); 96 98 97 99 // Redirect -
trunk/bp-activity/bp-activity-functions.php
r3765 r3772 771 771 $user_id = $args['user_id']; 772 772 773 do_action( 'bp_before_activity_delete', $args ); 774 773 775 $latest_update = get_user_meta( $user_id, 'bp_latest_update', true ); 774 776 if ( !empty( $latest_update ) ) { -
trunk/bp-friends/bp-friends-loader.php
r3757 r3772 380 380 $friendship = new BP_Friends_Friendship( $friendship_id ); 381 381 382 do_action( 'friends_before_friendship_delete', $friendship_id, $initiator_userid, $friend_userid ); 383 382 384 // Remove the activity stream item for the user who canceled the friendship 383 385 friends_delete_activity( array( 'item_id' => $friendship_id, 'type' => 'friendship_accepted', 'user_id' => $bp->displayed_user->id ) ); … … 590 592 global $bp; 591 593 594 do_action( 'friends_before_remove_data', $user_id ); 595 592 596 BP_Friends_Friendship::delete_all_for_user($user_id); 593 597 -
trunk/bp-themes/bp-default/_inc/ajax.php
r3771 r3772 245 245 246 246 // Call the action before the delete so plugins can still fetch information about it 247 do_action( 'bp_activity_ action_delete_activity', $_POST['id'], $activity->user_id );247 do_action( 'bp_activity_before_action_delete_activity', $_POST['id'], $activity->user_id ); 248 248 249 249 if ( !bp_activity_delete( array( 'id' => $_POST['id'], 'user_id' => $activity->user_id ) ) ) { … … 252 252 } 253 253 254 do_action( 'bp_activity_action_delete_activity', $_POST['id'], $activity->user_id ); 255 254 256 return true; 255 257 } … … 278 280 279 281 /* Call the action before the delete so plugins can still fetch information about it */ 280 do_action( 'bp_activity_ action_delete_activity', $_POST['id'], $comment->user_id );282 do_action( 'bp_activity_before_action_delete_activity', $_POST['id'], $comment->user_id ); 281 283 282 284 if ( !bp_activity_delete_comment( $comment->item_id, $comment->id ) ) { … … 284 286 return false; 285 287 } 288 289 do_action( 'bp_activity_action_delete_activity', $_POST['id'], $comment->user_id ); 286 290 287 291 return true;
Note: See TracChangeset
for help on using the changeset viewer.