Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/25/2009 01:17:25 AM (17 years ago)
Author:
apeatling
Message:

Updated xprofile activity record function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-wire/deprecated/bp-wire-deprecated.php

    r1655 r1693  
    8383add_action( 'wp_ajax_get_wire_posts', 'bp_wire_ajax_get_wire_posts' );
    8484
     85/* Use activity record functions in your specific component */
     86function bp_wire_record_activity( $args = true ) {
     87    if ( function_exists('bp_activity_record') ) {
     88        extract($args);
     89
     90        bp_activity_record( $item_id, $component_name, $component_action, $is_private, $secondary_item_id, $user_id, $secondary_user_id );
     91    }
     92}
     93
     94/* Use activity delete functions in your specific component */
     95function bp_wire_delete_activity( $args = true ) {
     96    if ( function_exists('bp_activity_delete') ) {
     97        extract($args);
     98        bp_activity_delete( $item_id, $component_name, $component_action, $user_id, $secondary_item_id );
     99    }
     100}
    85101?>
Note: See TracChangeset for help on using the changeset viewer.