Skip to:
Content

BuddyPress.org

Changeset 871 for trunk/bp-friends.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-friends.php

    r854 r871  
    119119    bp_core_delete_notifications_for_user_by_type( $bp['loggedin_userid'], 'friends', 'friendship_accepted' );
    120120
     121    do_action( 'friends_screen_my_friends' );
     122   
    121123    bp_catch_uri( 'friends/index' );   
    122124}
     
    144146    }
    145147   
     148    do_action( 'friends_screen_requests' );
     149   
    146150    bp_catch_uri( 'friends/requests' );
    147151}
    148152
    149153function friends_screen_friend_finder() {
     154    do_action( 'friends_screen_friend_finder' );
    150155    bp_catch_uri( 'friends/friend-finder' );
    151 }
    152 
    153 function friends_screen_invite_friends() {
    154     global $bp;
    155     $bp['current_action'] = 'my-friends';
    156    
    157     // Not implemented yet.
    158     bp_catch_uri( 'friends/index' );   
    159156}
    160157
     
    180177            <td class="no"><input type="radio" name="notifications[notification_friends_friendship_accepted]" value="no" <?php if ( get_usermeta( $current_user->id,'notification_friends_friendship_accepted') == 'no' ) { ?>checked="checked" <?php } ?>/></td>
    181178        </tr>
     179       
     180        <?php do_action( 'friends_screen_notification_settings' ); ?>
    182181    </table>
    183182<?php   
     
    248247    }
    249248   
     249    do_action( 'friends_format_activity', $action, $item_id, $user_id, $action, $secondary_item_id, $for_secondary_user );
     250   
    250251    return false;
    251252}
     
    275276        break;
    276277    }
     278
     279    do_action( 'friends_format_notifications', $action, $item_id, $secondary_item_id, $total_items );
    277280   
    278281    return false;
Note: See TracChangeset for help on using the changeset viewer.