Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/19/2009 09:26:24 PM (17 years ago)
Author:
apeatling
Message:

Fixes #584

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-classes.php

    r1138 r1245  
    309309    }
    310310   
     311    function delete_from_user_by_type( $user_id, $component_name, $component_action ) {
     312        global $wpdb, $bp;
     313       
     314        return $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->core->table_name_notifications} WHERE item_id = %d AND component_name = %s AND component_action = %s", $user_id, $component_name, $component_action ) );
     315    }
     316   
    311317    function delete_all_by_type( $item_id, $component_name, $component_action, $secondary_item_id ) {
    312318        global $wpdb, $bp;
Note: See TracChangeset for help on using the changeset viewer.