Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/02/2015 05:21:07 AM (10 years ago)
Author:
tw2113
Message:

Initial documentation cleanup for the BP Groups component.

See #6401.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-functions.php

    r9819 r9906  
    3636 * support and pass through the groups_get_group filter.
    3737 *
    38  * @param array $args {
     38 * @param array|string $args {
    3939 *  Array of al arguments.
    4040 *  @type int $group_id ID of the group.
     
    7474 * @since BuddyPress (1.0.0)
    7575 *
    76  * @param array $args {
     76 * @param array|string $args {
    7777 *     An array of arguments.
    7878 *     @type int|bool $group_id Pass a group ID to update an existing item, or
     
    258258 * @param bool $enable_forum Whether to enable a forum for the group.
    259259 * @param string $status Group status. 'public', 'private', 'hidden'.
    260  * @param string $invite_status Optional. Who is allowed to send invitations
     260 * @param string|bool $invite_status Optional. Who is allowed to send invitations
    261261 *        to the group. 'members', 'mods', or 'admins'.
    262262 * @return bool True on success, false on failure.
     
    363363 *
    364364 * @param string $slug Group slug to check.
    365  * @return A unique and sanitized slug.
     365 * @return string $slug A unique and sanitized slug.
    366366 */
    367367function groups_check_slug( $slug ) {
     
    656656 * Get a collection of groups, based on the parameters passed.
    657657 *
    658  * @param array $args {
     658 * @param array|string $args {
    659659 *     Array of arguments. Supports all arguments of
    660660 *     {@link BP_Groups_Group::get()}. Where the default values differ, they
     
    735735 *
    736736 * @param int $user_id ID of the user.
    737  * @param int $limit Optional. Max number of results to return.
     737 * @param int $pag_num Optional. Max number of results to return.
    738738 *        Default: false (no limit).
    739  * @param int $page Optional. Page offset of results to return.
     739 * @param int $pag_page Optional. Page offset of results to return.
    740740 *        Default: false (no limit).
    741741 * @return array {
     
    844844 * @param int $group_id ID of the group.
    845845 * @param int|null ID of the membership if the user is an admin, otherwise null.
     846 *
     847 * @return bool
    846848 */
    847849function groups_is_user_admin( $user_id, $group_id ) {
     
    855857 * @param int $group_id ID of the group.
    856858 * @param int|null ID of the membership if the user is a mod, otherwise null.
     859 *
     860 * @return bool
    857861 */
    858862function groups_is_user_mod( $user_id, $group_id ) {
     
    866870 * @param int $group_id ID of the group.
    867871 * @param int|null ID of the membership if the user is a member, otherwise null.
     872 *
     873 * @return bool
    868874 */
    869875function groups_is_user_member( $user_id, $group_id ) {
     
    895901 * @todo Should bail out when the Activity component is not active.
    896902 *
    897  * @param array {
     903 * @param array|string $args {
    898904 *     Array of arguments.
    899905 *     @type string $content The content of the update.
     
    982988 *
    983989 * @param int $user_id ID of the inviting user.
    984  * @param int $group_id ID of the group.
     990 * @param int|bool $limit Limit to restrict to.
     991 * @param int|bool $page
     992 * @param string|array|bool $exclude
     993 *
    985994 * @return array IDs of users who have been invited to the group by the
    986995 *         user but have not yet accepted.
     
    10131022 * Invite a user to a group.
    10141023 *
    1015  * @param array $args {
     1024 * @param array|string $args {
    10161025 *     Array of arguments.
    10171026 *     @type int $user_id ID of the user being invited.
     
    16271636 *
    16281637 * @param int $group_id ID of the group.
    1629  * @param string $meta_key The key of the row to delete.
    1630  * @param string $meta_value Optional. Metadata value. If specified, only delete
     1638 * @param string|bool $meta_key The key of the row to delete.
     1639 * @param string|bool $meta_value Optional. Metadata value. If specified, only delete
    16311640 *        metadata entries with this value.
    16321641 * @param bool $delete_all Optional. If true, delete matching metadata entries
Note: See TracChangeset for help on using the changeset viewer.