Skip to:
Content

BuddyPress.org

Changeset 2560


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

Fixes #1781

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-sn-parent/functions.php

    r2455 r2560  
    311311add_action( 'wp_ajax_aw_get_older_updates', 'bp_activity_ajax_load_older_updates' );
    312312
     313function bp_classic_remove_redundant() {
     314    global $bp;
     315
     316    /* Remove the navigation options that the theme does no support. */
     317    bp_core_remove_subnav_item( $bp->activity->slug, 'groups' );
     318    bp_core_remove_subnav_item( $bp->activity->slug, 'favorites' );
     319    bp_core_remove_subnav_item( $bp->activity->slug, 'mentions' );
     320}
     321add_action( 'init', 'bp_classic_remove_redundant' );
    313322?>
Note: See TracChangeset for help on using the changeset viewer.