Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/04/2015 10:23:19 PM (9 years ago)
Author:
tw2113
Message:

Docs cleanup for Friends component.

See #6400.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-friends/bp-friends-cache.php

    r9819 r9995  
    1818 *
    1919 * @param int $friendship_id ID of the friendship whose two members should
    20  *        have their friends cache busted.
     20 *                           have their friends cache busted.
     21 *
     22 * @return bool
    2123 */
    2224function friends_clear_friend_object_cache( $friendship_id ) {
     
    3739 * @since BuddyPress (2.0.0)
    3840 *
    39  * @param int $friend_user_id The user ID not initiating the friendship
     41 * @param int $friend_user_id The user ID not initiating the friendship.
    4042 */
    4143function bp_friends_clear_request_cache( $friend_user_id ) {
     
    5052 * @since BuddyPress (2.0.0)
    5153 *
    52  * @param int $friendship_id The friendship ID
    53  * @param int $initiator_user_id The user ID initiating the friendship
    54  * @param int $friend_user_id The user ID not initiating the friendship
     54 * @param int $friendship_id     The friendship ID.
     55 * @param int $initiator_user_id The user ID initiating the friendship.
     56 * @param int $friend_user_id    The user ID not initiating the friendship.
    5557 */
    5658function bp_friends_clear_request_cache_on_save( $friendship_id, $initiator_user_id, $friend_user_id ) {
     
    6769 * @since BuddyPress (2.0.0)
    6870 *
    69  * @param int $friendship_id The friendship ID
     71 * @param int                   $friendship_id The friendship ID.
    7072 * @param BP_Friends_Friendship $friendship
    7173 */
    7274function bp_friends_clear_request_cache_on_remove( $friendship_id, BP_Friends_Friendship $friendship ) {
    73     bp_friends_clear_request_cache( $friendship->friend_user_id ); 
     75    bp_friends_clear_request_cache( $friendship->friend_user_id );
    7476}
    7577add_action( 'friends_friendship_withdrawn', 'bp_friends_clear_request_cache_on_remove', 10, 2 );
Note: See TracChangeset for help on using the changeset viewer.