Skip to:
Content

BuddyPress.org

Changeset 871 for trunk/bp-messages.php


Ignore:
Timestamp:
01/19/2009 05:09:19 AM (16 years ago)
Author:
apeatling
Message:

Added hooks to screen and activity/notification formatting functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages.php

    r854 r871  
    172172
    173173function messages_screen_inbox() {
     174    do_action( 'messages_screen_inbox' );
    174175    bp_catch_uri( 'messages/index' );   
    175176}
    176177
    177178function messages_screen_sentbox() {
     179    do_action( 'messages_screen_sentbox' );
    178180    bp_catch_uri( 'messages/sentbox' );
    179181}
     
    200202        messages_send_message( $recipients, $_POST['subject'], $_POST['content'], $_POST['thread_id'], false, true );
    201203    }
     204   
     205    do_action( 'messages_screen_compose' );
    202206   
    203207    bp_catch_uri( 'messages/compose' );
     
    236240        bp_core_redirect( $bp['loggedin_domain'] . $bp['messages']['slug'] . '/notices' );
    237241    }
     242   
     243    do_action( 'messages_screen_notices' );
     244   
    238245    bp_catch_uri( 'messages/notices' );
    239246}
     
    260267            <td class="no"><input type="radio" name="notifications[notification_messages_new_notice]" value="no" <?php if ( get_usermeta( $current_user->id, 'notification_messages_new_notice' ) == 'no' ) { ?>checked="checked" <?php } ?>/></td>
    261268        </tr>
     269       
     270        <?php do_action( 'messages_screen_notification_settings' ) ?>
    262271    </table>
    263272<?php   
     
    365374            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 );
    366375    }
     376   
     377    do_action( 'messages_format_notifications', $action, $item_id, $secondary_item_id, $total_items );
     378   
     379    return false;
    367380}
    368381
Note: See TracChangeset for help on using the changeset viewer.