Skip to:
Content

BuddyPress.org

Changeset 1718 for trunk/bp-groups.php


Ignore:
Timestamp:
08/27/2009 09:18:10 PM (17 years ago)
Author:
apeatling
Message:

Fixes #723

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r1714 r1718  
    131131        $bp->groups->format_notification_function = 'groups_format_notifications';
    132132        $bp->groups->slug = BP_GROUPS_SLUG;
    133        
     133
     134        /* Register this in the active components array */
     135        $bp->active_components[$bp->groups->slug] = $bp->groups->id;
     136               
    134137        if ( function_exists('bp_wire_install') )
    135138                $bp->groups->table_name_wire = $wpdb->base_prefix . 'bp_groups_wire';
     
    209212
    210213        /* Add 'Groups' to the main navigation */
    211         bp_core_new_nav_item( array( 'name' => __('Groups', 'buddypress'), 'slug' => $bp->groups->slug, 'position' => 70, 'screen_function' => 'groups_screen_my_groups', 'default_subnav_slug' => 'my-groups' ) );
     214        bp_core_new_nav_item( array( 'name' => __('Groups', 'buddypress'), 'slug' => $bp->groups->slug, 'position' => 70, 'screen_function' => 'groups_screen_my_groups', 'default_subnav_slug' => 'my-groups', 'item_css_id' => $bp->groups->id ) );
    212215       
    213216        $groups_link = $bp->loggedin_user->domain . $bp->groups->slug . '/';
     
    277280
    278281                        if ( $bp->groups->current_group->enable_wire && function_exists('bp_wire_install') )
    279                                 bp_core_new_subnav_item( array( 'name' => __( 'Wire', 'buddypress' ), 'slug' => 'wire', 'parent_url' => $group_link, 'parent_slug' => $bp->groups->slug, 'screen_function' => 'groups_screen_group_wire', 'position' => 50, 'user_has_access' => $bp->groups->current_group->user_has_access, 'item_css_id' => 'group-wire'  ) );
     282                                bp_core_new_subnav_item( array( 'name' => __( 'Wire', 'buddypress' ), 'slug' => BP_WIRE_SLUG, 'parent_url' => $group_link, 'parent_slug' => $bp->groups->slug, 'screen_function' => 'groups_screen_group_wire', 'position' => 50, 'user_has_access' => $bp->groups->current_group->user_has_access, 'item_css_id' => 'group-wire'  ) );
    280283
    281284                        bp_core_new_subnav_item( array( 'name' => __( 'Members', 'buddypress' ), 'slug' => 'members', 'parent_url' => $group_link, 'parent_slug' => $bp->groups->slug, 'screen_function' => 'groups_screen_group_members', 'position' => 60, 'user_has_access' => $bp->groups->current_group->user_has_access, 'item_css_id' => 'group-members'  ) );
Note: See TracChangeset for help on using the changeset viewer.