Changeset 10373 for trunk/src/bp-groups/bp-groups-widgets.php
- Timestamp:
- 11/22/2015 04:58:34 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-widgets.php
r10148 r10373 10 10 defined( 'ABSPATH' ) || exit; 11 11 12 /* Register widgets for groups component */ 12 /** 13 * Register widgets for groups component 14 */ 13 15 function groups_register_widgets() { 14 16 add_action('widgets_init', create_function('', 'return register_widget("BP_Groups_Widget");') ); … … 16 18 add_action( 'bp_register_widgets', 'groups_register_widgets' ); 17 19 18 /*** GROUPS WIDGET *****************/ 19 20 /** 21 * GROUPS WIDGET 22 */ 20 23 class BP_Groups_Widget extends WP_Widget { 24 25 /** 26 * Working as a group, we get things done better. 27 */ 21 28 function __construct() { 22 29 $widget_ops = array( … … 41 48 } 42 49 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 */ 43 56 function widget( $args, $instance ) { 44 57 … … 146 159 } 147 160 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 */ 148 168 function update( $new_instance, $old_instance ) { 149 169 $instance = $old_instance; … … 157 177 } 158 178 179 /** 180 * Extends our form method. 181 * 182 * @param array $instance Current instance. 183 * @return mixed 184 */ 159 185 function form( $instance ) { 160 186 $defaults = array(
Note: See TracChangeset
for help on using the changeset viewer.