Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/10/2013 02:04:10 AM (13 years ago)
Author:
boonebgorges
Message:

Improve inline docs in bp-forums component. See #5022

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-loader.php

    r7454 r7554  
    66 * A discussion forums component. Comes bundled with bbPress stand-alone.
    77 *
     8 * Note: The bp-forums component has been retired. Use the bbPress WordPress
     9 * plugin instead.
     10 *
    811 * @package BuddyPress
    9  * @subpackage Forums Core
     12 * @subpackage Forums
    1013 */
    1114
     
    1619
    1720        /**
    18          * Start the forums component creation process
    19          *
    20          * @since BuddyPress (1.5)
     21         * Start the forums component creation process.
     22         *
     23         * @since BuddyPress (1.5.0)
    2124         */
    2225        function __construct() {
     
    3235
    3336        /**
    34          * Setup globals
     37         * Set up bp-forums global settings.
    3538         *
    3639         * The BP_FORUMS_SLUG constant is deprecated, and only used here for
    3740         * backwards compatibility.
    3841         *
    39          * @since BuddyPress (1.5)
     42         * @since BuddyPress (1.5.0)
     43         *
     44         * @see BP_Component::setup_globals() for description of parameters.
     45         *
     46         * @param array $args See {@link BP_Component::setup_globals()}.
    4047         */
    4148        public function setup_globals( $args = array() ) {
     
    6875
    6976        /**
    70          * Include files
     77         * Include bp-forums files.
     78         *
     79         * @see BP_Component::includes() for description of parameters.
     80         *
     81         * @param array $includes See {@link BP_Component::includes()}.
    7182         */
    7283        public function includes( $includes = array() ) {
     
    96107
    97108        /**
    98          * Setup BuddyBar navigation
     109         * Set up component navigation.
     110         *
     111         * @since BuddyPress (1.5.0)
     112         *
     113         * @see BP_Component::setup_nav() for a description of arguments.
     114         *
     115         * @param array $main_nav Optional. See BP_Component::setup_nav() for
     116         *        description.
     117         * @param array $sub_nav Optional. See BP_Component::setup_nav() for
     118         *        description.
    99119         */
    100120        public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
     
    156176
    157177        /**
    158          * Set up the Toolbar
     178         * Set up bp-forums integration with the WordPress admin bar.
     179         *
     180         * @since BuddyPress (1.5.0)
     181         *
     182         * @see BP_Component::setup_admin_bar() for a description of arguments.
     183         *
     184         * @param array $wp_admin_nav See BP_Component::setup_admin_bar()
     185         *        for description.
    159186         */
    160187        public function setup_admin_bar( $wp_admin_nav = array() ) {
     
    203230
    204231        /**
    205          * Sets up the title for pages and <title>
     232         * Set up the title for pages and the <title> element.
    206233         */
    207234        function setup_title() {
     
    226253}
    227254
     255/**
     256 * Set up the bp-forums component.
     257 */
    228258function bp_setup_forums() {
    229259        buddypress()->forums = new BP_Forums_Component();
Note: See TracChangeset for help on using the changeset viewer.