Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/01/2011 11:54:03 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Introduce icons32.png to project, and use through-out admin area. Also clean up some component grammar and verbiage, and hide the admin dashboard menu item until it is closer to completion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-functions.php

    r3982 r3987  
    146146        'capability' => 'manage_options',
    147147        'file'       => 'bp-general-settings',
    148         'function'   => 'bp_core_admin_dashboard',
     148        'function'   => 'bp_core_admin_component_setup',
    149149        'position'   => 2
    150150    ) );
    151151
    152     $hooks[] = add_submenu_page( 'bp-general-settings', __( 'BuddyPress Dashboard', 'buddypress' ), __( 'Dashboard', 'buddypress' ), 'manage_options', 'bp-general-settings', 'bp_core_admin_dashboard' );
    153     $hooks[] = add_submenu_page( 'bp-general-settings', __( 'Settings', 'buddypress' ),       __( 'Settings',  'buddypress' ), 'manage_options', 'bp-settings',         'bp_core_admin_settings'  );
    154     $hooks[] = add_submenu_page( 'bp-general-settings', __( 'Component Setup', 'buddypress' ),             __( 'Component Setup',  'buddypress' ), 'manage_options', 'bp-component-setup',         'bp_core_admin_component_setup'  );
     152    $hooks[] = add_submenu_page( 'bp-general-settings', __( 'Components', 'buddypress' ), __( 'Components', 'buddypress' ), 'manage_options', 'bp-general-settings', 'bp_core_admin_component_setup'  );
     153    $hooks[] = add_submenu_page( 'bp-general-settings', __( 'Settings',   'buddypress' ), __( 'Settings',   'buddypress' ), 'manage_options', 'bp-settings',         'bp_core_admin_settings'         );
    155154
    156155    // Add a hook for css/js
    157     foreach( $hooks as $hook ) {
     156    foreach( $hooks as $hook )
    158157        add_action( "admin_print_styles-$hook", 'bp_core_add_admin_menu_styles' );
    159     }
     158
    160159}
    161160add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_core_add_admin_menu', 9 );
Note: See TracChangeset for help on using the changeset viewer.