Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/25/2011 08:58:56 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Rename new 'bp-users' component to 'bp-members' for consistency through-out project.
Core, Messages, and Friends Components now use the BP_Component class.
Split Friends and Messages components into smaller files.
Change references to 'profile' to 'xprofile' through-out project for consistency.
Introduce 'bp_actions' and 'bp_screens' standard hooks to replace the usage of 'wp' through-out project.
Move component loader sequence into bp-core-bootstrap.php,
Move old root_component action into 1.3 deprecated file.

Location:
trunk/bp-members
Files:
1 copied
1 moved

Legend:

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

    r3916 r3917  
    11<?php
    22
    3 function bp_users_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = 0, $date_notified = false ) {
     3function bp_members_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = 0, $date_notified = false ) {
    44    global $bp;
    55
     
    2424}
    2525
    26 function bp_users_delete_notification( $id ) {
    27     if ( !bp_users_check_notification_access( $bp->loggedin_user->id, $id ) )
     26function bp_members_delete_notification( $id ) {
     27    if ( !bp_members_check_notification_access( $bp->loggedin_user->id, $id ) )
    2828        return false;
    2929
     
    3131}
    3232
    33 function bp_users_get_notification( $id ) {
     33function bp_members_get_notification( $id ) {
    3434    return new BP_Core_Notification( $id );
    3535}
    3636
    37 function bp_users_get_notifications_for_user( $user_id ) {
     37function bp_members_get_notifications_for_user( $user_id ) {
    3838    global $bp;
    3939
     
    7272}
    7373
    74 function bp_users_delete_notifications_by_type( $user_id, $component_name, $component_action ) {
     74function bp_members_delete_notifications_by_type( $user_id, $component_name, $component_action ) {
    7575    return BP_Core_Notification::delete_for_user_by_type( $user_id, $component_name, $component_action );
    7676}
    7777
    78 function bp_users_delete_notifications_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) {
     78function bp_members_delete_notifications_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) {
    7979    return BP_Core_Notification::delete_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id );
    8080}
    8181
    82 function bp_users_delete_all_notifications_by_type( $item_id, $component_name, $component_action = false, $secondary_item_id = false ) {
     82function bp_members_delete_all_notifications_by_type( $item_id, $component_name, $component_action = false, $secondary_item_id = false ) {
    8383    return BP_Core_Notification::delete_all_by_type( $item_id, $component_name, $component_action, $secondary_item_id );
    8484}
    8585
    86 function bp_users_delete_notifications_from_user( $user_id, $component_name, $component_action ) {
     86function bp_members_delete_notifications_from_user( $user_id, $component_name, $component_action ) {
    8787    return BP_Core_Notification::delete_from_user_by_type( $user_id, $component_name, $component_action );
    8888}
    8989
    90 function bp_users_check_notification_access( $user_id, $notification_id ) {
     90function bp_members_check_notification_access( $user_id, $notification_id ) {
    9191    if ( !BP_Core_Notification::check_access( $user_id, $notification_id ) )
    9292        return false;
Note: See TracChangeset for help on using the changeset viewer.