Skip to:
Content

BuddyPress.org

Changeset 960


Ignore:
Timestamp:
01/29/2009 04:05:55 AM (18 years ago)
Author:
apeatling
Message:

Added constant with filter for component slugs.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity.php

    r938 r960  
    55define ( 'BP_ACTIVITY_VERSION', '1.0b1.1' );
    66define ( 'BP_ACTIVITY_DB_VERSION', '937' );
     7
     8define ( 'BP_ACTIVITY_SLUG', apply_filters( 'bp_activity_slug', 'activity' ) );
    79
    810/* How long before activity items in streams are re-cached? */
    … …  
    143145               
    144146                'image_base' => site_url( MUPLUGINDIR . '/bp-activity/images' ),
    145                 'slug'           => 'activity'
     147                'slug'           => BP_ACTIVITY_SLUG
    146148        );
    147149       
  • trunk/bp-blogs.php

    r954 r960  
    55define ( 'BP_BLOGS_DB_VERSION', '937' );
    66
    7 define ( 'BP_BLOGS_SLUG', 'blogs' );
     7define ( 'BP_BLOGS_SLUG', apply_filters( 'bp_blogs_slug', 'blogs' ) );
    88
    99/* These will be moved into admin configurable settings */
  • trunk/bp-friends.php

    r938 r960  
    55define ( 'BP_FRIENDS_VERSION', '1.0b1' );
    66define ( 'BP_FRIENDS_DB_VERSION', '937' );
     7
     8define ( 'BP_FRIENDS_SLUG', apply_filters( 'friends_slug', 'friends' ) );
    79
    810include_once( 'bp-friends/bp-friends-classes.php' );
    … …  
    5961                'image_base' => site_url( MUPLUGINDIR . '/bp-friends/images' ),
    6062                'format_activity_function' => 'friends_format_activity',
    61                 'slug'           => 'friends'
     63                'slug'           => BP_FRIENDS_SLUG
    6264        );
    6365
  • trunk/bp-messages.php

    r948 r960  
    55define ( 'BP_MESSAGES_VERSION', '1.0b1' );
    66define ( 'BP_MESSAGES_DB_VERSION', '948' );
     7
     8define ( 'BP_MESSAGES_SLUG', apply_filters( 'messages_slug', 'messages' ) );
    79
    810include_once( 'bp-messages/bp-messages-classes.php' );
    … …  
    103105                'format_activity_function' => 'messages_format_activity',
    104106                'image_base'                       => site_url( MUPLUGINDIR . '/bp-messages/images' ),
    105                 'slug'                                     => 'messages'
     107                'slug'                                     => BP_MESSAGES_SLUG
    106108        );
    107109
  • trunk/bp-wire.php

    r943 r960  
    44define ( 'BP_WIRE_IS_INSTALLED', 1 );
    55define ( 'BP_WIRE_VERSION', '1.0b1' );
     6
     7define ( 'BP_WIRE_SLUG', apply_filters( 'bp_wire_slug', 'wire' ) );
    68
    79include_once( 'bp-wire/bp-wire-classes.php' );
    … …  
    2729        $bp['wire'] = array(
    2830                'image_base' => site_url( MUPLUGINDIR . '/bp-wire/images' ),
    29                 'slug'           => 'wire'
     31                'slug'           => BP_WIRE_SLUG
    3032        );
    3133
  • trunk/bp-xprofile.php

    r948 r960  
    55define ( 'BP_XPROFILE_VERSION', '1.0b1' );
    66define ( 'BP_XPROFILE_DB_VERSION', '948' );
     7
     8define ( 'BP_XPROFILE_SLUG', apply_filters( 'xprofile_slug', 'profile' ) );
    79
    810/* Database access classes and functions */
    … …  
    150152                'format_activity_function' => 'xprofile_format_activity',
    151153                'image_base'            => site_url( MUPLUGINDIR . '/bp-xprofile/images' ),
    152                 'slug'                          => 'profile'
     154                'slug'                          => BP_XPROFILE_SLUG
    153155        );
    154156       
Note: See TracChangeset for help on using the changeset viewer.