diff --git src/bp-groups/bp-groups-functions.php src/bp-groups/bp-groups-functions.php
index 283392b..dbee599 100644
|
|
|
function groups_post_update( $args = '' ) { |
| 981 | 981 | /** |
| 982 | 982 | * Get IDs of users with outstanding invites to a given group from a specified user. |
| 983 | 983 | * |
| 984 | | * @param int $user_id ID of the inviting user. |
| 985 | | * @param int $group_id ID of the group. |
| 986 | | * @return array IDs of users who have been invited to the group by the |
| 987 | | * user but have not yet accepted. |
| | 984 | * @param int $user_id ID of the invitee. |
| | 985 | * @param int $limit Optional. Max number of results to return. |
| | 986 | * Default: false (no limit). |
| | 987 | * @param int $page Optional. Page offset of results to return. |
| | 988 | * Default: false (no limit). |
| | 989 | * @param string|array $exclude Optional. Array or comma-separated list |
| | 990 | * of group IDs to exclude from results. |
| | 991 | * @return array { |
| | 992 | * @type array $groups Array of groups returned by paginated query. |
| | 993 | * @type int $total Count of groups matching query. |
| | 994 | * } |
| 988 | 995 | */ |
| 989 | 996 | function groups_get_invites_for_user( $user_id = 0, $limit = false, $page = false, $exclude = false ) { |
| 990 | 997 | |
| … |
… |
function groups_get_invites_for_group( $user_id, $group_id ) { |
| 1258 | 1265 | * @param int $group_id ID of potential group. |
| 1259 | 1266 | * @param string $type Optional. Use 'sent' to check for sent invites, 'all' to |
| 1260 | 1267 | * check for all. Default: 'sent'. |
| 1261 | | * @return bool True if an invitation is found, otherwise false. |
| | 1268 | * @return int|null The ID of the invitation if found, otherwise null. |
| 1262 | 1269 | */ |
| 1263 | 1270 | function groups_check_user_has_invite( $user_id, $group_id, $type = 'sent' ) { |
| 1264 | 1271 | return BP_Groups_Member::check_has_invite( $user_id, $group_id, $type ); |
| … |
… |
function groups_delete_membership_request( $membership_id, $user_id = 0, $group_ |
| 1588 | 1595 | * |
| 1589 | 1596 | * @param int $user_id ID of the user. |
| 1590 | 1597 | * @param int $group_id ID of the group. |
| 1591 | | * @return int|null ID of the membership if found, otherwise false. |
| | 1598 | * @return int number of rows matched, otherwise 0. (False if arguments are empty.) |
| 1592 | 1599 | */ |
| 1593 | 1600 | function groups_check_for_membership_request( $user_id, $group_id ) { |
| 1594 | 1601 | return BP_Groups_Member::check_for_membership_request( $user_id, $group_id ); |