Skip to:
Content

BuddyPress.org

Changeset 2919 for trunk/bp-groups.php


Ignore:
Timestamp:
04/13/2010 04:01:07 PM (14 years ago)
Author:
apeatling
Message:

Replacing function_exists() checks with bp_is_active() checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r2866 r2919  
    16581658        'type' => 'active', // active, newest, alphabetical, random, popular, most-forum-topics or most-forum-posts
    16591659        '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)
    16601661        'search_terms' => false, // Limit to groups that match these search terms
    16611662
     
    16681669    extract( $params, EXTR_SKIP );
    16691670
    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 );
    16931672
    16941673    return apply_filters( 'groups_get_groups', $groups, &$params );
Note: See TracChangeset for help on using the changeset viewer.