Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/15/2016 02:30:51 AM (10 years ago)
Author:
boonebgorges
Message:

Normalize documentation and array definition whitespace after [10766].

See #6784.

File:
1 edited

Legend:

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

    r10766 r10767  
    698698
    699699    $defaults = array(
    700         'type'              => false,          // Active, newest, alphabetical, random, popular, most-forum-topics or most-forum-posts.
    701         'order'             => 'DESC',         // 'ASC' or 'DESC'
    702         'orderby'           => 'date_created', // date_created, last_activity, total_member_count, name, random.
    703         'user_id'           => false,          // Pass a user_id to limit to only groups that this user is a member of.
    704         'include'           => false,          // Only include these specific groups (group_ids).
    705         'exclude'           => false,          // Do not include these specific groups (group_ids).
    706         'search_terms'      => false,          // Limit to groups that match these search terms.
     700        'type'               => false,          // Active, newest, alphabetical, random, popular, most-forum-topics or most-forum-posts.
     701        'order'              => 'DESC',         // 'ASC' or 'DESC'
     702        'orderby'            => 'date_created', // date_created, last_activity, total_member_count, name, random.
     703        'user_id'            => false,          // Pass a user_id to limit to only groups that this user is a member of.
     704        'include'            => false,          // Only include these specific groups (group_ids).
     705        'exclude'            => false,          // Do not include these specific groups (group_ids).
     706        'search_terms'       => false,          // Limit to groups that match these search terms.
    707707        'group_type'         => '',
    708708        'group_type__in'     => '',
    709709        'group_type__not_in' => '',
    710         'meta_query'        => false,          // Filter by groupmeta. See WP_Meta_Query for syntax.
    711         'show_hidden'       => false,          // Show hidden groups to non-admins.
    712         'per_page'          => 20,             // The number of results to return per page.
    713         'page'              => 1,              // The page to return if limiting per page.
    714         'populate_extras'   => true,           // Fetch meta such as is_banned and is_member.
    715         'update_meta_cache' => true,           // Pre-fetch groupmeta for queried groups.
     710        'meta_query'         => false,          // Filter by groupmeta. See WP_Meta_Query for syntax.
     711        'show_hidden'        => false,          // Show hidden groups to non-admins.
     712        'per_page'           => 20,             // The number of results to return per page.
     713        'page'               => 1,              // The page to return if limiting per page.
     714        'populate_extras'    => true,           // Fetch meta such as is_banned and is_member.
     715        'update_meta_cache'  => true,           // Pre-fetch groupmeta for queried groups.
    716716    );
    717717
     
    719719
    720720    $groups = BP_Groups_Group::get( array(
    721         'type'              => $r['type'],
    722         'user_id'           => $r['user_id'],
    723         'include'           => $r['include'],
    724         'exclude'           => $r['exclude'],
    725         'search_terms'      => $r['search_terms'],
     721        'type'               => $r['type'],
     722        'user_id'            => $r['user_id'],
     723        'include'            => $r['include'],
     724        'exclude'            => $r['exclude'],
     725        'search_terms'       => $r['search_terms'],
    726726        'group_type'         => $r['group_type'],
    727727        'group_type__in'     => $r['group_type__in'],
    728728        'group_type__not_in' => $r['group_type__not_in'],
    729         'meta_query'        => $r['meta_query'],
    730         'show_hidden'       => $r['show_hidden'],
    731         'per_page'          => $r['per_page'],
    732         'page'              => $r['page'],
    733         'populate_extras'   => $r['populate_extras'],
    734         'update_meta_cache' => $r['update_meta_cache'],
    735         'order'             => $r['order'],
    736         'orderby'           => $r['orderby'],
     729        'meta_query'         => $r['meta_query'],
     730        'show_hidden'        => $r['show_hidden'],
     731        'per_page'           => $r['per_page'],
     732        'page'               => $r['page'],
     733        'populate_extras'    => $r['populate_extras'],
     734        'update_meta_cache'  => $r['update_meta_cache'],
     735        'order'              => $r['order'],
     736        'orderby'            => $r['orderby'],
    737737    ) );
    738738
Note: See TracChangeset for help on using the changeset viewer.