Changeset 7885 for trunk/bp-groups/bp-groups-functions.php
- Timestamp:
- 02/14/2014 07:21:52 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-functions.php
r7883 r7885 1041 1041 * @param string $meta_key Metadata key. 1042 1042 * @param mixed $meta_value Value to store. 1043 * @param mixed $prev_value Optional. If specified, only update existing 1044 * metadata entries with the specified value. Otherwise, update all 1045 * entries. 1043 1046 * @return bool True on success, false on failure. 1044 1047 */ 1045 function groups_update_groupmeta( $group_id, $meta_key, $meta_value ) {1048 function groups_update_groupmeta( $group_id, $meta_key, $meta_value, $prev_value = '' ) { 1046 1049 1047 1050 add_filter( 'query', 'bp_filter_metaid_column_name' ); 1048 $retval = update_metadata( 'group', $group_id, $meta_key, $meta_value );1051 $retval = update_metadata( 'group', $group_id, $meta_key, $meta_value, $prev_value ); 1049 1052 remove_filter( 'query', 'bp_filter_metaid_column_name' ); 1050 1053
Note: See TracChangeset
for help on using the changeset viewer.