Ticket #5287: 5287.diff
File 5287.diff, 1.5 KB (added by , 11 years ago) |
---|
-
bp-groups/bp-groups-admin.php
1292 1292 * @return array Array of column titles. 1293 1293 */ 1294 1294 function get_columns() { 1295 return a rray(1295 return apply_filters_ref_array( 'bp_groups_list_table_get_columns', array( array( 1296 1296 'cb' => '<input name type="checkbox" />', 1297 1297 'comment' => _x( 'Name', 'Groups admin Group Name column header', 'buddypress' ), 1298 1298 'description' => _x( 'Description', 'Groups admin Group Description column header', 'buddypress' ), 1299 1299 'status' => _x( 'Status', 'Groups admin Privacy Status column header', 'buddypress' ), 1300 1300 'members' => _x( '# Members', 'Groups admin Members column header', 'buddypress' ), 1301 1301 'last_active' => _x( 'Last Active', 'Groups admin Last Active column header', 'buddypress' ) 1302 ) ;1302 ) ) ); 1303 1303 } 1304 1304 1305 1305 /** … … 1475 1475 $last_active = groups_get_groupmeta( $item['id'], 'last_activity' ); 1476 1476 echo apply_filters_ref_array( 'bp_groups_admin_get_group_last_active', array( $last_active, $item ) ); 1477 1477 } 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 } 1478 1490 }