Skip to:
Content

BuddyPress.org

Ticket #6023: 6023.01.patch

File 6023.01.patch, 785 bytes (added by dcavins, 12 years ago)

Documentation for groups_get_invites_for_group()

  • src/bp-groups/bp-groups-functions.php

    diff --git src/bp-groups/bp-groups-functions.php src/bp-groups/bp-groups-functions.php
    index fb837df..c88c727 100644
    function groups_send_invites( $user_id, $group_id ) {  
    10471047        do_action( 'groups_send_invites', $group_id, $invited_users );
    10481048}
    10491049
     1050/**
     1051 * Get IDs of users with outstanding invites to a given group from a specified user.
     1052 *
     1053 * @param int $user_id ID of the inviting user.
     1054 * @param int $group_id ID of the group.
     1055 * @return array IDs of users who have been invited to the group by the
     1056 *         user but have not yet accepted.
     1057 */
    10501058function groups_get_invites_for_group( $user_id, $group_id ) {
    10511059        return BP_Groups_Group::get_invites( $user_id, $group_id );
    10521060}