Skip to:

Opened 15 years ago

Closed 15 years ago

#1281 closed enhancement (fixed)

function bp_is_single_group_item()

Reported by: 21cdb's profile 21cdb Owned by:
Milestone: 1.1.3 Priority: major
Severity: Version:
Component: Keywords:
Cc: email@…


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;

Change History (2)

#1 @21cdb
15 years ago

  • Cc email@… added

#2 @johnjamesjacoby
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [2073]) Fixes #1281 (props 21cdb)

Note: See TracTickets for help on using tickets.