Changeset 3371 for trunk/bp-groups/bp-groups-templatetags.php
- Timestamp:
- 11/07/2010 11:17:17 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups/bp-groups-templatetags.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-templatetags.php
r3365 r3371 23 23 var $order; 24 24 25 function bp_groups_template( $user_id, $type, $page, $per_page, $max, $slug, $search_terms, $include, $populate_extras ) {25 function bp_groups_template( $user_id, $type, $page, $per_page, $max, $slug, $search_terms, $include, $populate_extras, $exclude ) { 26 26 global $bp; 27 27 … … 30 30 31 31 if ( 'invites' == $type ) { 32 $this->groups = groups_get_invites_for_user( $user_id, $this->pag_num, $this->pag_page );32 $this->groups = groups_get_invites_for_user( $user_id, $this->pag_num, $this->pag_page, $exclude ); 33 33 } else if ( 'single-group' == $type ) { 34 34 $group = new stdClass; … … 36 36 $this->groups = array( $group ); 37 37 } else { 38 $this->groups = groups_get_groups( array( 'type' => $type, 'per_page' => $this->pag_num, 'page' => $this->pag_page, 'user_id' => $user_id, 'search_terms' => $search_terms, 'include' => $include, ' populate_extras' => $populate_extras ) );38 $this->groups = groups_get_groups( array( 'type' => $type, 'per_page' => $this->pag_num, 'page' => $this->pag_page, 'user_id' => $user_id, 'search_terms' => $search_terms, 'include' => $include, 'exclude' => $exclude, 'populate_extras' => $populate_extras ) ); 39 39 } 40 40 … … 173 173 'search_terms' => $search_terms, // Pass search terms to return only matching groups 174 174 'include' => false, // Pass comma separated list of group ID's to return only these groups 175 'exclude' => false, // Pass comma separated list of group ID's to exclude these groups 175 176 176 177 'populate_extras' => true // Get extra meta - is_member, is_banned … … 180 181 extract( $r ); 181 182 182 $groups_template = new BP_Groups_Template( (int)$user_id, $type, (int)$page, (int)$per_page, (int)$max, $slug, $search_terms, $include, (bool)$populate_extras );183 $groups_template = new BP_Groups_Template( (int)$user_id, $type, (int)$page, (int)$per_page, (int)$max, $slug, $search_terms, $include, (bool)$populate_extras, $exclude ); 183 184 return apply_filters( 'bp_has_groups', $groups_template->has_groups(), &$groups_template ); 184 185 }
Note: See TracChangeset
for help on using the changeset viewer.