Changeset 2919 for trunk/bp-groups.php
- Timestamp:
- 04/13/2010 04:01:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups.php
r2866 r2919 1658 1658 'type' => 'active', // active, newest, alphabetical, random, popular, most-forum-topics or most-forum-posts 1659 1659 'user_id' => false, // Pass a user_id to limit to only groups that this user is a member of 1660 'include' => false, // Only include these specific groups (group_ids) 1660 1661 'search_terms' => false, // Limit to groups that match these search terms 1661 1662 … … 1668 1669 extract( $params, EXTR_SKIP ); 1669 1670 1670 switch ( $type ) { 1671 case 'active': default: 1672 $groups = BP_Groups_Group::get_active( $per_page, $page, $user_id, $search_terms, $populate_extras ); 1673 break; 1674 case 'newest': 1675 $groups = BP_Groups_Group::get_newest( $per_page, $page, $user_id, $search_terms, $populate_extras ); 1676 break; 1677 case 'popular': 1678 $groups = BP_Groups_Group::get_popular( $per_page, $page, $user_id, $search_terms, $populate_extras ); 1679 break; 1680 case 'alphabetical': 1681 $groups = BP_Groups_Group::get_alphabetically( $per_page, $page, $user_id, $search_terms, $populate_extras ); 1682 break; 1683 case 'random': 1684 $groups = BP_Groups_Group::get_random( $per_page, $page, $user_id, $search_terms, $populate_extras ); 1685 break; 1686 case 'most-forum-topics': 1687 $groups = BP_Groups_Group::get_by_most_forum_topics( $per_page, $page, $user_id, $search_terms, $populate_extras ); 1688 break; 1689 case 'most-forum-posts': 1690 $groups = BP_Groups_Group::get_by_most_forum_posts( $per_page, $page, $user_id, $search_terms, $populate_extras ); 1691 break; 1692 } 1671 $groups = BP_Groups_Group::get( $type, $per_page, $page, $user_id, $search_terms, $include, $populate_extras ); 1693 1672 1694 1673 return apply_filters( 'groups_get_groups', $groups, &$params );
Note: See TracChangeset
for help on using the changeset viewer.