Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/22/2015 04:58:34 AM (8 years ago)
Author:
tw2113
Message:

More docs cleanup for BP-Groups component.

See #6401.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-widgets.php

    r10148 r10373  
    1010defined( 'ABSPATH' ) || exit;
    1111
    12 /* Register widgets for groups component */
     12/**
     13 * Register widgets for groups component
     14 */
    1315function groups_register_widgets() {
    1416    add_action('widgets_init', create_function('', 'return register_widget("BP_Groups_Widget");') );
     
    1618add_action( 'bp_register_widgets', 'groups_register_widgets' );
    1719
    18 /*** GROUPS WIDGET *****************/
    19 
     20/**
     21 * GROUPS WIDGET
     22 */
    2023class BP_Groups_Widget extends WP_Widget {
     24
     25    /**
     26     * Working as a group, we get things done better.
     27     */
    2128    function __construct() {
    2229        $widget_ops = array(
     
    4148    }
    4249
     50    /**
     51     * Extends our frontend output method.
     52     *
     53     * @param array $args     Array of arguments for the widget.
     54     * @param array $instance Widget instance data.
     55     */
    4356    function widget( $args, $instance ) {
    4457
     
    146159    }
    147160
     161    /**
     162     * Extends our update method.
     163     *
     164     * @param array $new_instance New instance data.
     165     * @param array $old_instance Original instance data.
     166     * @return array
     167     */
    148168    function update( $new_instance, $old_instance ) {
    149169        $instance = $old_instance;
     
    157177    }
    158178
     179    /**
     180     * Extends our form method.
     181     *
     182     * @param array $instance Current instance.
     183     * @return mixed
     184     */
    159185    function form( $instance ) {
    160186        $defaults = array(
Note: See TracChangeset for help on using the changeset viewer.