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-activity/bp-activity-actions.php

    r3751 r3772  
    8787
    8888    // 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 );
    9090
    9191    // Delete the activity item and provide user feedback
     
    9494    else
    9595        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 );
    9698
    9799    // Redirect
Note: See TracChangeset for help on using the changeset viewer.