bb_topic_search_form

The BuddyPress bb topic search form function.

Description

bb_topic_search_form( (constant) $args = null, (null) $query_obj = null ); 

Parameters (2)

0. $args — Optional. (constant) => null
The args.
1. $query_obj — Optional. (null) => null
The query obj.

Usage

  1. if ( !function_exists( 'bb_topic_search_form' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-template.php'; 
  3.  
  4. // The args. 
  5. $args = null; 
  6.  
  7. // The query obj. 
  8. $query_obj = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bb_topic_search_form($args, $query_obj); 
  12.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-template.php  
  1. function bb_topic_search_form( $args = null, $query_obj = null ) { 
  2. global $bb_query_form; 
  3.  
  4. if ( $query_obj && is_a($query_obj, 'BB_Query_Form') ); // [sic] 
  5. else 
  6. $query_obj =& $bb_query_form; 
  7.  
  8. $query_obj->form( $args );