Skip to:
Content

BuddyPress.org

Changeset 2662 for trunk/bp-groups.php


Ignore:
Timestamp:
02/11/2010 11:03:57 AM (16 years ago)
Author:
apeatling
Message:

Remove the "Invites" step from group creation if the friends component is removed. Fixes #1904

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r2656 r2662  
    9090        'group-settings' => array( 'name' => __( 'Settings', 'buddypress' ), 'position' => 10 ),
    9191        'group-avatar' => array( 'name' => __( 'Avatar', 'buddypress' ), 'position' => 20 ),
    92         'group-invites' => array( 'name' => __( 'Invites', 'buddypress' ), 'position' => 30 )
    9392    ) );
     93
     94    if ( bp_is_active( 'friends' ) )
     95        $bp->groups->group_creation_steps['group-invites'] = array( 'name' => __( 'Invites', 'buddypress' ), 'position' => 30 );
    9496
    9597    $bp->groups->valid_status = apply_filters( 'groups_valid_status', array( 'public', 'private', 'hidden' ) );
Note: See TracChangeset for help on using the changeset viewer.