Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/16/2011 08:08:45 PM (15 years ago)
Author:
boonebgorges
Message:

Adds toggle for who can send group invitations, in order to make the option more consistent and configurable throughout BP. Fixes #2005. Props DJPaul for help cleaning up the patches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-functions.php

    r4470 r4524  
    119119}
    120120
    121 function groups_edit_group_settings( $group_id, $enable_forum, $status ) {
     121function groups_edit_group_settings( $group_id, $enable_forum, $status, $invite_status = false ) {
    122122    global $bp;
    123123
     
    144144        }
    145145    }
     146
     147    // Set the invite status
     148    if ( $invite_status )
     149        groups_update_groupmeta( $group->id, 'invite_status', $invite_status );
    146150
    147151    groups_update_groupmeta( $group->id, 'last_activity', bp_core_current_time() );
Note: See TracChangeset for help on using the changeset viewer.