Skip to:
Content

BuddyPress.org

Changeset 854 for trunk/bp-messages.php


Ignore:
Timestamp:
01/16/2009 09:00:46 PM (16 years ago)
Author:
apeatling
Message:

Added filters to all activity and notification formatting functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages.php

    r805 r854  
    361361    if ( $action == 'new_message') {
    362362        if ( (int)$total_items > 1 )
    363             return '<a href="' . $bp['loggedin_domain'] . $bp['messages']['slug'] . '/inbox" title="Inbox">' . sprintf( __('You have %d new messages'), (int)$total_items ) . '</a>';       
     363            return apply_filters( 'bp_messages_multiple_new_message_notification', '<a href="' . $bp['loggedin_domain'] . $bp['messages']['slug'] . '/inbox" title="Inbox">' . sprintf( __('You have %d new messages'), (int)$total_items ) . '</a>', $total_items );       
    364364        else
    365             return '<a href="' . $bp['loggedin_domain'] . $bp['messages']['slug'] . '/inbox" title="Inbox">' . sprintf( __('You have %d new message'), (int)$total_items ) . '</a>';
     365            return apply_filters( 'bp_messages_single_new_message_notification', '<a href="' . $bp['loggedin_domain'] . $bp['messages']['slug'] . '/inbox" title="Inbox">' . sprintf( __('You have %d new message'), (int)$total_items ) . '</a>', $total_items );
    366366    }
    367367}
Note: See TracChangeset for help on using the changeset viewer.