Skip to:
Content

BuddyPress.org

Ticket #2773: before-activity.patch

File before-activity.patch, 809 bytes (added by kunalb, 16 years ago)
  • bp-activity.php

     
    367367        else
    368368                bp_core_add_message( __( 'There was an error when deleting that activity', 'buddypress' ), 'error' );
    369369
     370        do_action( 'bp_activity_action_deleted_activity', $activity_id );
     371
    370372        bp_core_redirect( wp_get_referer() );
    371373}
    372374add_action( 'wp', 'bp_activity_action_delete_activity', 3 );
     
    830832
    831833        $args = wp_parse_args( $args, $defaults );
    832834
     835        do_action( 'bp_before_activity_delete', $args );
     836
    833837        if ( !$activity_ids_deleted = BP_Activity_Activity::delete( $args ) )
    834838                return false;
    835839
     
    12121216add_action( 'bp_loaded', 'bp_register_activity_actions', 8 );
    12131217
    12141218
    1215 ?>
    1216  No newline at end of file
     1219?>