[buddypress-trac] [BuddyPress] #1281: function bp_is_single_group_item()

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Oct 27 16:23:26 UTC 2009


#1281: function bp_is_single_group_item()
------------------------+---------------------------------------------------
Reporter:  21cdb        |       Owner:       
    Type:  enhancement  |      Status:  new  
Priority:  major        |   Milestone:  1.1.3
Keywords:               |  
------------------------+---------------------------------------------------
 It would be great if you could add the following function to bp.core-
 templatetags.php since there is no easy way to determine if we are on a
 single group page and not on the users profile groups section (at least i
 didn't found one, correct me if i'm wrong).


 {{{
 function bp_is_single_group_item() {
         global $bp;

         if ( $bp->current_component == $bp->groups->slug &&
 $bp->is_single_item )
                 return true;

         return false;
 }}}

-- 
Ticket URL: <http://trac.buddypress.org/ticket/1281>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list