Skip to:
Content

BuddyPress.org

Changeset 3403 for trunk/bp-xprofile.php


Ignore:
Timestamp:
11/12/2010 10:35:06 PM (14 years ago)
Author:
boonebgorges
Message:

Adds notifications for new activity at-mentions. Fixes #2155

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile.php

    r3394 r3403  
    874874add_action( 'user_profile_update_errors', 'xprofile_sync_bp_profile', 10, 3 );
    875875
    876 /**
    877  * xprofile_remove_screen_notifications()
    878  *
    879  * Removes notifications from the notification menu when a user clicks on them and
    880  * is taken to a specific screen.
    881  *
    882  * @package BuddyPress Core
    883  */
    884 function xprofile_remove_screen_notifications() {
    885     global $bp;
    886 
    887     bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, $bp->profile->id, 'new_at_mention' );
    888 }
    889 add_action( 'bp_activity_screen_my_activity', 'xprofile_remove_screen_notifications' );
    890 add_action( 'bp_activity_screen_single_activity_permalink', 'xprofile_remove_screen_notifications' );
    891 
    892876
    893877/**
Note: See TracChangeset for help on using the changeset viewer.