Skip to:
Content

BuddyPress.org

Ticket #5287: 5287.diff

File 5287.diff, 1.5 KB (added by imath, 11 years ago)
  • bp-groups/bp-groups-admin.php

     
    12921292         * @return array Array of column titles.
    12931293         */
    12941294        function get_columns() {
    1295                 return array(
     1295                return apply_filters_ref_array( 'bp_groups_list_table_get_columns', array( array(
    12961296                        'cb'          => '<input name type="checkbox" />',
    12971297                        'comment'     => _x( 'Name', 'Groups admin Group Name column header',               'buddypress' ),
    12981298                        'description' => _x( 'Description', 'Groups admin Group Description column header', 'buddypress' ),
    12991299                        'status'      => _x( 'Status', 'Groups admin Privacy Status column header',         'buddypress' ),
    13001300                        'members'     => _x( '# Members', 'Groups admin Members column header',             'buddypress' ),
    13011301                        'last_active' => _x( 'Last Active', 'Groups admin Last Active column header',       'buddypress' )
    1302                 );
     1302                ) ) );
    13031303        }
    13041304
    13051305        /**
     
    14751475                $last_active = groups_get_groupmeta( $item['id'], 'last_activity' );
    14761476                echo apply_filters_ref_array( 'bp_groups_admin_get_group_last_active', array( $last_active, $item ) );
    14771477        }
     1478
     1479        /**
     1480         * Allow plugins to add their costum column.
     1481         *
     1482         * @since BuddyPress ?
     1483         *
     1484         * @param array Information about the current row.
     1485         * @param string the column name.
     1486         */
     1487        function column_default( $item = array(), $column_name = '' ) {
     1488                return apply_filters_ref_array( 'bp_groups_admin_get_group_custom_column', array( '', $column_name, $item ) );
     1489        }
    14781490}