bb_bozo_topic_pages_add

The BuddyPress bb bozo topic pages add function.

Description

bb_bozo_topic_pages_add( $add ); 

Parameters (1)

0. $add
The add.

Usage

  1. if ( !function_exists( 'bb_bozo_topic_pages_add' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-plugins/bozo.php'; 
  3.  
  4. // The add. 
  5. $add = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_bozo_topic_pages_add($add); 
  9.  

Defined (1)

The function is defined in the following location(s).

/bp-forums/bbpress/bb-plugins/bozo.php  
  1. function bb_bozo_topic_pages_add( $add ) { 
  2. global $topic; 
  3. if ( isset($_GET['view']) && 'all' == $_GET['view'] && bb_current_user_can('browse_deleted') ) : 
  4. $add += @array_sum($topic->bozos); 
  5. endif; 
  6. if ( isset( $topic->topic_id ) && bb_current_user_is_bozo( $topic->topic_id ) ) 
  7. $add += $topic->bozos[bb_get_current_user_info( 'id' )]; 
  8. return $add;