Changeset 4501 for trunk/includes/forums/functions.php
- Timestamp:
- 11/24/2012 07:07:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/forums/functions.php
r4489 r4501 664 664 } 665 665 666 /** Walk **********************************************************************/667 668 /**669 * Walk the forum tree670 *671 * @param object $forums Forums672 * @param int $depth Depth673 * @param int $current Current forum674 * @param array $r Parsed arguments, supported by the walker. If you want to675 * use your own walker, pass the 'walker' arg with the walker.676 * The walker defaults to {@link BBP_Walker_Forum}677 * @return object Walked forum tree678 */679 function bbp_walk_forum( $forums, $depth, $current, $r ) {680 $walker = empty( $r['walker'] ) ? new BBP_Walker_Forum : $r['walker'];681 $args = array( $forums, $depth, $r, $current );682 return call_user_func_array( array( &$walker, 'walk' ), $args );683 }684 685 666 /** Forum Actions *************************************************************/ 686 667
Note: See TracChangeset
for help on using the changeset viewer.