Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/03/2011 09:03:41 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Add bp-pages admin interface for all components. Rename bp-pages related functions to match existing nomenclature. Introduce 'has_directory' variable in BP_Component class to assist in pairing page slugs to component directories. Set 'path' variable in components that were missing them. Clean up white space where tabs were used instead of spaces. See #3428. Props boonebgorges.

File:
1 edited

Legend:

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

    r4907 r4920  
    7777        // Note that global_tables is included in this array.
    7878        $globals = array(
     79            'path'                  => BP_PLUGIN_DIR,
    7980            'slug'                  => BP_GROUPS_SLUG,
    8081            'root_slug'             => isset( $bp->pages->groups->slug ) ? $bp->pages->groups->slug : BP_GROUPS_SLUG,
     82            'has_directory'         => true,
    8183            'notification_callback' => 'groups_format_notifications',
    8284            'search_string'         => __( 'Search Groups...', 'buddypress' ),
     
    168170                // group's home page           
    169171                bp_core_no_access( array(
    170                     'message'   => __( 'You do not have access to this group.', 'buddypress' ),
    171                     'root'      => bp_get_group_permalink( $bp->groups->current_group ),
    172                     'redirect'  => false
     172                    'message'  => __( 'You do not have access to this group.', 'buddypress' ),
     173                    'root'     => bp_get_group_permalink( $bp->groups->current_group ),
     174                    'redirect' => false
    173175                ) );
    174176            } else {
Note: See TracChangeset for help on using the changeset viewer.