Changeset 3987 for trunk/bp-core/bp-core-functions.php
- Timestamp:
- 02/01/2011 11:54:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-functions.php
r3982 r3987 146 146 'capability' => 'manage_options', 147 147 'file' => 'bp-general-settings', 148 'function' => 'bp_core_admin_ dashboard',148 'function' => 'bp_core_admin_component_setup', 149 149 'position' => 2 150 150 ) ); 151 151 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' ); 155 154 156 155 // Add a hook for css/js 157 foreach( $hooks as $hook ) {156 foreach( $hooks as $hook ) 158 157 add_action( "admin_print_styles-$hook", 'bp_core_add_admin_menu_styles' ); 159 } 158 160 159 } 161 160 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_core_add_admin_menu', 9 );
Note: See TracChangeset
for help on using the changeset viewer.