Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/04/2011 05:50:22 PM (14 years ago)
Author:
johnjamesjacoby
Message:

First pass at reverting members/core function & filter refactor. See #3158.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-notifications.php

    r4246 r4605  
    1010 */
    1111
    12 function bp_members_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = 0, $date_notified = false ) {
     12function bp_core_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = 0, $date_notified = false ) {
    1313    global $bp;
    1414
     
    3333}
    3434
    35 function bp_members_delete_notification( $id ) {
    36     if ( !bp_members_check_notification_access( $bp->loggedin_user->id, $id ) )
     35function bp_core_delete_notification( $id ) {
     36    if ( !bp_core_check_notification_access( $bp->loggedin_user->id, $id ) )
    3737        return false;
    3838
     
    4040}
    4141
    42 function bp_members_get_notification( $id ) {
     42function bp_core_get_notification( $id ) {
    4343    return new BP_Core_Notification( $id );
    4444}
    4545
    46 function bp_members_get_notifications_for_user( $user_id ) {
     46function bp_core_get_notifications_for_user( $user_id ) {
    4747    global $bp;
    4848
     
    8181}
    8282
    83 function bp_members_delete_notifications_by_type( $user_id, $component_name, $component_action ) {
     83function bp_core_delete_notifications_by_type( $user_id, $component_name, $component_action ) {
    8484    return BP_Core_Notification::delete_for_user_by_type( $user_id, $component_name, $component_action );
    8585}
    8686
    87 function bp_members_delete_notifications_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) {
     87function bp_core_delete_notifications_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) {
    8888    return BP_Core_Notification::delete_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id );
    8989}
    9090
    91 function bp_members_delete_all_notifications_by_type( $item_id, $component_name, $component_action = false, $secondary_item_id = false ) {
     91function bp_core_delete_all_notifications_by_type( $item_id, $component_name, $component_action = false, $secondary_item_id = false ) {
    9292    return BP_Core_Notification::delete_all_by_type( $item_id, $component_name, $component_action, $secondary_item_id );
    9393}
    9494
    95 function bp_members_delete_notifications_from_user( $user_id, $component_name, $component_action ) {
     95function bp_core_delete_notifications_from_user( $user_id, $component_name, $component_action ) {
    9696    return BP_Core_Notification::delete_from_user_by_type( $user_id, $component_name, $component_action );
    9797}
    9898
    99 function bp_members_check_notification_access( $user_id, $notification_id ) {
     99function bp_core_check_notification_access( $user_id, $notification_id ) {
    100100    if ( !BP_Core_Notification::check_access( $user_id, $notification_id ) )
    101101        return false;
Note: See TracChangeset for help on using the changeset viewer.