Changeset 2700
- Timestamp:
- 02/12/2010 01:43:04 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
bp-groups.php (modified) (1 diff)
-
bp-groups/bp-groups-templatetags.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups.php
r2695 r2700 1730 1730 * user has joined. 1731 1731 */ 1732 function groups_get_newest( $limit = null, $page = 1, $user_id = false, $search_terms = false ) {1733 return BP_Groups_Group::get_newest( $limit, $page, $user_id, $search_terms );1734 } 1735 1736 function groups_get_active( $limit = null, $page = 1, $user_id = false, $search_terms = false ) {1737 return BP_Groups_Group::get_active( $limit, $page, $user_id, $search_terms );1738 } 1739 1740 function groups_get_popular( $limit = null, $page = 1, $user_id = false, $search_terms = false ) {1741 return BP_Groups_Group::get_popular( $limit, $page, $user_id, $search_terms );1742 } 1743 1744 function groups_get_random_groups( $limit = null, $page = 1, $user_id = false, $search_terms = false ) {1745 return BP_Groups_Group::get_random( $limit, $page, $user_id, $search_terms );1746 } 1747 1748 function groups_get_alphabetically( $limit = null, $page = 1, $user_id = false, $search_terms = false ) {1749 return BP_Groups_Group::get_alphabetically( $limit, $page, $user_id, $search_terms );1750 } 1751 1752 function groups_get_by_most_forum_topics( $limit = null, $page = 1, $user_id = false, $search_terms = false ) {1753 return BP_Groups_Group::get_by_most_forum_topics( $limit, $page, $user_id, $search_terms );1754 } 1755 1756 function groups_get_by_most_forum_posts( $limit = null, $page = 1, $user_id = false, $search_terms = false ) {1757 return BP_Groups_Group::get_by_most_forum_posts( $limit, $page, $user_id, $search_terms );1732 function groups_get_newest( $limit = null, $page = 1, $user_id = false, $search_terms = false, $populate_extras = true ) { 1733 return BP_Groups_Group::get_newest( $limit, $page, $user_id, $search_terms, $populate_extras ); 1734 } 1735 1736 function groups_get_active( $limit = null, $page = 1, $user_id = false, $search_terms = false, $populate_extras = true ) { 1737 return BP_Groups_Group::get_active( $limit, $page, $user_id, $search_terms, $populate_extras ); 1738 } 1739 1740 function groups_get_popular( $limit = null, $page = 1, $user_id = false, $search_terms = false, $populate_extras = true ) { 1741 return BP_Groups_Group::get_popular( $limit, $page, $user_id, $search_terms, $populate_extras ); 1742 } 1743 1744 function groups_get_random_groups( $limit = null, $page = 1, $user_id = false, $search_terms = false, $populate_extras = true ) { 1745 return BP_Groups_Group::get_random( $limit, $page, $user_id, $search_terms, $populate_extras ); 1746 } 1747 1748 function groups_get_alphabetically( $limit = null, $page = 1, $user_id = false, $search_terms = false, $populate_extras = true ) { 1749 return BP_Groups_Group::get_alphabetically( $limit, $page, $user_id, $search_terms, $populate_extras ); 1750 } 1751 1752 function groups_get_by_most_forum_topics( $limit = null, $page = 1, $user_id = false, $search_terms = false, $populate_extras = true ) { 1753 return BP_Groups_Group::get_by_most_forum_topics( $limit, $page, $user_id, $search_terms, $populate_extras ); 1754 } 1755 1756 function groups_get_by_most_forum_posts( $limit = null, $page = 1, $user_id = false, $search_terms = false, $populate_extras = true ) { 1757 return BP_Groups_Group::get_by_most_forum_posts( $limit, $page, $user_id, $search_terms, $populate_extras ); 1758 1758 } 1759 1759 -
trunk/bp-groups/bp-groups-templatetags.php
r2695 r2700 224 224 extract( $r ); 225 225 226 $groups_template = new BP_Groups_Template( (int)$user_id, $type, (int)$page, (int)$per_page, (int)$max, $slug, $search_terms, ( int)$populate_extras );226 $groups_template = new BP_Groups_Template( (int)$user_id, $type, (int)$page, (int)$per_page, (int)$max, $slug, $search_terms, (bool)$populate_extras ); 227 227 return apply_filters( 'bp_has_groups', $groups_template->has_groups(), &$groups_template ); 228 228 }
Note: See TracChangeset
for help on using the changeset viewer.