Changeset 4920
- Timestamp:
- 08/03/2011 09:03:41 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-loader.php
r4907 r4920 77 77 'slug' => BP_ACTIVITY_SLUG, 78 78 'root_slug' => isset( $bp->pages->activity->slug ) ? $bp->pages->activity->slug : BP_ACTIVITY_SLUG, 79 'has_directory' => true, 79 80 'search_string' => __( 'Search Activity...', 'buddypress' ), 80 81 'global_tables' => $global_tables, -
trunk/bp-blogs/bp-blogs-loader.php
r4907 r4920 54 54 'slug' => BP_BLOGS_SLUG, 55 55 'root_slug' => isset( $bp->pages->blogs->slug ) ? $bp->pages->blogs->slug : BP_BLOGS_SLUG, 56 'has_directory' => true, 56 57 'notification_callback' => 'bp_blogs_format_notifications', 57 58 'search_string' => __( 'Search sites...', 'buddypress' ), -
trunk/bp-core/admin/bp-core-admin.php
r4907 r4920 212 212 } 213 213 } 214 bp_core_update_ page_meta( $directory_pages );214 bp_core_update_directory_page_ids( $directory_pages ); 215 215 } 216 216 … … 353 353 ), 354 354 'messages' => array( 355 'title' 355 'title' => __( 'Private Messaging', 'buddypress' ), 356 356 'description' => __( 'Allow your users to talk to each other directly and in private. They are not just limited to one-on-one discussions, and can send messages to multiple recipients.', 'buddypress' ) 357 357 ), … … 372 372 if ( is_multisite() ) { 373 373 $optional_components['blogs'] = array( 374 'title' 374 'title' => __( 'Site Tracking', 'buddypress' ), 375 375 'description' => __( 'Track new sites, new posts and new comments across your entire network.', 'buddypress' ) 376 376 ); … … 482 482 483 483 // Get the existing WP pages 484 $existing_pages = bp_core_get_page_meta(); 485 486 // An array of strings looped over to create component setup markup 487 $directory_pages = array( 488 'members' => __( 'Community Members', 'buddypress' ), 489 'activity' => __( 'Activity Streams', 'buddypress' ), 490 'groups' => __( 'User Groups', 'buddypress' ), 491 'forums' => __( 'Discussion Forums', 'buddypress' ), 492 ); 493 494 if ( is_multisite() ) 495 $directory_pages['blogs'] = __( "Site Directory", 'buddypress' ); ?> 484 $existing_pages = bp_core_get_directory_page_ids(); 485 486 // Set up an array of components (along with component names) that have 487 // directory pages. 488 $directory_pages = array(); 489 490 foreach( $bp->loaded_components as $component_id => $data ) { 491 492 // Only components that need directories should be listed here 493 if ( isset( $bp->{$component_id} ) && !empty( $bp->{$component_id}->has_directory ) ) { 494 495 // component->name was introduced in BP 1.5, so we must provide a fallback 496 $component_name = !empty( $bp->{$component_id}->name ) ? $bp->{$component_id}->name : ucwords( $component_id ); 497 498 $directory_pages[$component_id] = $component_name; 499 } 500 } 501 502 $directory_pages = apply_filters( 'bp_directory_pages', $directory_pages ); 503 504 ?> 496 505 497 506 <h3><?php _e( 'Directories', 'buddypress' ); ?></h3> 498 507 499 <p><?php _e( ' Choose a WordPress Page to associate with each available BuddyPress Component directory.', 'buddypress' ); ?></p>508 <p><?php _e( 'Associate a WordPress Page with each BuddyPress component directory.', 'buddypress' ); ?></p> 500 509 501 510 <table class="form-table"> -
trunk/bp-core/admin/bp-core-update.php
r4907 r4920 85 85 $steps[] = __( 'Database Update', 'buddypress' ); 86 86 87 if ( $this->database_version < 1801 || !bp_core_get_ page_meta() )87 if ( $this->database_version < 1801 || !bp_core_get_directory_page_ids() ) 88 88 $steps[] = __( 'Pages', 'buddypress' ); 89 89 -
trunk/bp-core/bp-core-buddybar.php
r4907 r4920 242 242 // Off-limits to this user. Throw an error and redirect to the displayed user's domain 243 243 bp_core_no_access( array( 244 'message' 245 'root' 246 'redirect' 244 'message' => __( 'You do not have access to this page.', 'buddypress' ), 245 'root' => bp_displayed_user_domain(), 246 'redirect' => false 247 247 ) ); 248 248 } else { -
trunk/bp-core/bp-core-catchuri.php
r4907 r4920 38 38 39 39 // Don't catch URIs on non-root blogs unless multiblog mode is on 40 if ( !bp_is_root_blog() && !bp_is_multiblog_mode() ) {40 if ( !bp_is_root_blog() && !bp_is_multiblog_mode() ) 41 41 return false; 42 }43 42 44 43 // Fetch all the WP page names for each component 45 44 if ( empty( $bp->pages ) ) 46 $bp->pages = bp_core_get_ page_names();45 $bp->pages = bp_core_get_directory_pages(); 47 46 48 47 // Ajax or not? … … 78 77 $bkey = array_search( $chunk, $bp_uri ); 79 78 80 if ( $bkey !== false ) 79 if ( $bkey !== false ) { 81 80 unset( $bp_uri[$bkey] ); 81 } 82 82 83 83 $bp_uri = array_values( $bp_uri ); … … 115 115 if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_on_front' ) && empty( $bp_uri ) ) { 116 116 $post = get_post( get_option( 'page_on_front' ) ); 117 if ( !empty( $post ) ) 117 if ( !empty( $post ) ) { 118 118 $bp_uri[0] = $post->post_name; 119 } 119 120 } 120 121 … … 311 312 $object_id = 0; 312 313 foreach ( (array)$bp->pages as $page ) { 313 if ( isset( $bp_unfiltered_uri[$bp_unfiltered_uri_offset] ) && $page->name == $bp_unfiltered_uri[$bp_unfiltered_uri_offset] ) 314 if ( isset( $bp_unfiltered_uri[$bp_unfiltered_uri_offset] ) && $page->name == $bp_unfiltered_uri[$bp_unfiltered_uri_offset] ) { 314 315 $object_id = $page->id; 316 } 315 317 } 316 318 … … 397 399 398 400 $defaults = array( 399 'mode' => '1',// 1 = $root, 2 = wp-login.php400 'message' 401 'redirect' 402 'root' 401 'mode' => '1', // 1 = $root, 2 = wp-login.php 402 'message' => __( 'You must log in to access the page you requested.', 'buddypress' ), 403 'redirect' => wp_guess_url(), // the URL you get redirected to when a user successfully logs in 404 'root' => $bp->root_domain // the landing page you get redirected to when a user doesn't have access 403 405 ); 404 406 … … 421 423 bp_core_redirect( $root ); 422 424 } 423 break; 425 426 break; 424 427 425 428 // Redirect to root with "redirect_to" parameter … … 438 441 439 442 bp_core_redirect( $url ); 440 break; 443 444 break; 441 445 } 442 446 } -
trunk/bp-core/bp-core-component.php
r4912 r4920 34 34 */ 35 35 var $slug; 36 37 /** 38 * @var bool Does this component need a top-level directory? 39 */ 40 var $has_directory; 36 41 37 42 /** … … 108 113 'slug' => '', 109 114 'root_slug' => '', 115 'has_directory' => false, 110 116 'notification_callback' => '', 111 117 'search_string' => '', … … 114 120 $r = wp_parse_args( $args, $defaults ); 115 121 116 // Slug used for permalink s122 // Slug used for permalink URI chunk after root 117 123 $this->slug = apply_filters( 'bp_' . $this->id . '_slug', $r['slug'] ); 118 124 119 125 // Slug used for root directory 120 126 $this->root_slug = apply_filters( 'bp_' . $this->id . '_root_slug', $r['root_slug'] ); 127 128 // Does this component have a top-level directory? 129 $this->has_directory = apply_filters( 'bp_' . $this->id . '_has_directory', $r['has_directory'] ); 121 130 122 131 // Search string … … 133 142 /** BuddyPress ********************************************************/ 134 143 135 // Register this component in the activecomponents array144 // Register this component in the loaded components array 136 145 $bp->loaded_components[$this->slug] = $this->id; 137 146 … … 183 192 */ 184 193 function setup_actions() { 185 // Register post types 186 add_action( 'bp_setup_globals', array ( $this, 'setup_globals' ), 10 ); 187 188 // Include required files. Called early to ensure that BP core components are 189 // loaded before plugins that hook their loader functions to bp_include with 190 // the default priority of 10. This is for backwards compatibility; henceforth, 191 // plugins should register themselves by extending this base class. 192 add_action( 'bp_include', array ( $this, 'includes' ), 8 ); 193 194 // Register post types 195 add_action( 'bp_setup_nav', array ( $this, 'setup_nav' ), 10 ); 196 197 // Register post types 198 add_action( 'bp_setup_admin_bar', array ( $this, 'setup_admin_bar' ), 10 ); 199 200 // Register post types 201 add_action( 'bp_setup_title', array ( $this, 'setup_title' ), 10 ); 202 203 // Register post types 204 add_action( 'bp_register_post_types', array ( $this, 'register_post_types' ), 10 ); 194 195 // Register post types 196 add_action( 'bp_setup_globals', array ( $this, 'setup_globals' ), 10 ); 197 198 // Include required files. Called early to ensure that BP core 199 // components are loaded before plugins that hook their loader functions 200 // to bp_include with the default priority of 10. This is for backwards 201 // compatibility; henceforth, plugins should register themselves by 202 // extending this base class. 203 add_action( 'bp_include', array ( $this, 'includes' ), 8 ); 204 205 // Register post types 206 add_action( 'bp_setup_nav', array ( $this, 'setup_nav' ), 10 ); 207 208 // Register post types 209 add_action( 'bp_setup_admin_bar', array ( $this, 'setup_admin_bar' ), 10 ); 210 211 // Register post types 212 add_action( 'bp_setup_title', array ( $this, 'setup_title' ), 10 ); 213 214 // Register post types 215 add_action( 'bp_register_post_types', array ( $this, 'register_post_types' ), 10 ); 205 216 206 217 // Register taxonomies 207 add_action( 'bp_register_taxonomies', array ( $this, 'register_taxonomies'), 10 );218 add_action( 'bp_register_taxonomies', array ( $this, 'register_taxonomies' ), 10 ); 208 219 209 220 // Add the rewrite tags 210 add_action( 'bp_add_rewrite_tags', array ( $this, 'add_rewrite_tags'), 10 );221 add_action( 'bp_add_rewrite_tags', array ( $this, 'add_rewrite_tags' ), 10 ); 211 222 212 223 // Generate rewrite rules 213 add_action( 'bp_generate_rewrite_rules', array ( $this, 'generate_rewrite_rules'), 10 );224 add_action( 'bp_generate_rewrite_rules', array ( $this, 'generate_rewrite_rules' ), 10 ); 214 225 215 226 // Additional actions can be attached here -
trunk/bp-core/bp-core-functions.php
r4919 r4920 79 79 * people running trunk installations. Leave for a version or two, then remove. 80 80 */ 81 function bp_core_get_ page_meta() {81 function bp_core_get_directory_page_ids() { 82 82 $page_ids = bp_get_option( 'bp-pages' ); 83 83 … … 93 93 } 94 94 95 return apply_filters( 'bp_core_get_page_meta', $page_ids ); 95 foreach( $page_ids as $component_name => $page_id ) { 96 if ( empty( $component_name ) || empty( $page_id ) ) { 97 unset( $page_ids[$component_name] ); 98 } 99 } 100 101 return apply_filters( 'bp_core_get_directory_page_ids', $page_ids ); 96 102 } 97 103 … … 107 113 * @param array $blog_page_ids The IDs of the WP pages corresponding to BP component directories 108 114 */ 109 function bp_core_update_ page_meta( $blog_page_ids ) {115 function bp_core_update_directory_page_ids( $blog_page_ids ) { 110 116 bp_update_option( 'bp-pages', $blog_page_ids ); 111 117 } … … 119 125 * @return obj $pages Page names, IDs, and slugs 120 126 */ 121 function bp_core_get_ page_names() {127 function bp_core_get_directory_pages() { 122 128 global $wpdb, $bp; 123 129 124 // Set pages as standard class125 $pages = new stdClass;126 127 130 // Get pages and IDs 128 if ( $page_ids = bp_core_get_page_meta() ) { 131 if ( $page_ids = bp_core_get_directory_page_ids() ) { 132 133 // Set pages as standard class 134 $pages = new stdClass; 129 135 130 136 $posts_table_name = bp_is_multiblog_mode() ? $wpdb->get_blog_prefix( bp_get_root_blog_id() ) . 'posts' : $wpdb->posts; … … 132 138 $page_names = $wpdb->get_results( $wpdb->prepare( "SELECT ID, post_name, post_parent, post_title FROM {$posts_table_name} WHERE ID IN ({$page_ids_sql}) AND post_status = 'publish' " ) ); 133 139 134 foreach ( (array)$page_ids as $ key=> $page_id ) {140 foreach ( (array)$page_ids as $component_id => $page_id ) { 135 141 foreach ( (array)$page_names as $page_name ) { 136 142 if ( $page_name->ID == $page_id ) { 137 $pages->{$ key}->name = $page_name->post_name;138 $pages->{$ key}->id = $page_name->ID;139 $pages->{$ key}->title = $page_name->post_title;140 $slug[] = $page_name->post_name;143 $pages->{$component_id}->name = $page_name->post_name; 144 $pages->{$component_id}->id = $page_name->ID; 145 $pages->{$component_id}->title = $page_name->post_title; 146 $slug[] = $page_name->post_name; 141 147 142 148 // Get the slug … … 147 153 } 148 154 149 $pages->{$ key}->slug = implode( '/', array_reverse( (array)$slug ) );155 $pages->{$component_id}->slug = implode( '/', array_reverse( (array)$slug ) ); 150 156 } 151 157 … … 155 161 } 156 162 157 return apply_filters( 'bp_core_get_ page_names', $pages );163 return apply_filters( 'bp_core_get_directory_pages', $pages ); 158 164 } 159 165 … … 392 398 393 399 $orphaned_pages[] = array( 394 'id' 395 'title' 400 'id' => $page_data->ID, 401 'title' => $page_data->post_title 396 402 ); 397 403 } … … 420 426 $wp_page_components = array(); 421 427 422 // Only some BP components require a WP page to function - those with a non-empty root_slug423 foreach( $bp-> active_components as $component_id => $is_active ) {424 if ( !empty( $bp->{$component_id}-> root_slug) ) {428 // Only components with 'has_directory' require a WP page to function 429 foreach( $bp->loaded_components as $component_id => $is_active ) { 430 if ( !empty( $bp->{$component_id}->has_directory ) ) { 425 431 $wp_page_components[] = array( 426 'id' 427 'name' => $bp->{$component_id}->name432 'id' => $component_id, 433 'name' => isset( $bp->{$component_id}->name ) ? $bp->{$component_id}->name : ucwords( $bp->{$component_id}->id ) 428 434 ); 429 435 } … … 434 440 if ( isset( $bp->site_options['registration'] ) && ( 'user' == $bp->site_options['registration'] || ( 'all' == $bp->site_options['registration'] ) ) ) { 435 441 $wp_page_components[] = array( 436 'id' 437 'name' 442 'id' => 'activate', 443 'name' => __( 'Activate', 'buddypress' ) 438 444 ); 439 445 440 446 $wp_page_components[] = array( 441 'id' 442 'name' 447 'id' => 'register', 448 'name' => __( 'Register', 'buddypress' ) 443 449 ); 444 450 } … … 1000 1006 if ( is_multisite() ) { 1001 1007 $network_options = apply_filters( 'bp_core_network_options', array( 1002 'tags_blog_id' 1008 'tags_blog_id' => '0', 1003 1009 'registration' => '0', 1004 1010 'fileupload_maxk' => '1500' … … 1068 1074 1069 1075 if ( empty( $bp->pages ) ) 1070 $bp->pages = bp_core_get_ page_names();1076 $bp->pages = bp_core_get_directory_pages(); 1071 1077 1072 1078 $match = false; … … 1081 1087 if ( empty( $match ) ) { 1082 1088 $bp->add_root[] = $slug; 1083 add_action( 'bp_init', 'bp_core_create_root_component_page' ); 1089 } 1090 1091 // Make sure that this component is registered as requiring a top-level directory 1092 if ( isset( $bp->{$slug} ) ) { 1093 $bp->loaded_components[$bp->{$slug}->slug] = $bp->{$slug}->id; 1094 $bp->{$slug}->has_directory = true; 1084 1095 } 1085 1096 } … … 1093 1104 $new_page_ids[$slug] = wp_insert_post( array( 'comment_status' => 'closed', 'ping_status' => 'closed', 'post_title' => ucwords( $slug ), 'post_status' => 'publish', 'post_type' => 'page' ) ); 1094 1105 1095 $page_ids = array_merge( (array) $new_page_ids, (array) bp_core_get_ page_meta() );1096 bp_core_update_ page_meta( $page_ids );1106 $page_ids = array_merge( (array) $new_page_ids, (array) bp_core_get_directory_page_ids() ); 1107 bp_core_update_directory_page_ids( $page_ids ); 1097 1108 } 1098 1109 -
trunk/bp-core/bp-core-loader.php
r4907 r4920 58 58 59 59 // Set the included and optional components. 60 $bp->optional_components = array( 'activity', 'forums', 'friends', 'groups', 'messages', 'settings', 'xprofile' ,);60 $bp->optional_components = array( 'activity', 'forums', 'friends', 'groups', 'messages', 'settings', 'xprofile' ); 61 61 62 62 // Blogs component only available for multisite … … 140 140 // The names of the core WordPress pages used to display BuddyPress content 141 141 if ( empty( $bp->pages ) ) 142 $bp->pages = bp_core_get_ page_names();142 $bp->pages = bp_core_get_directory_pages(); 143 143 144 144 /** Admin Bar *********************************************************/ -
trunk/bp-forums/bp-forums-admin.php
r4821 r4920 180 180 "define( 'BB_NONCE_KE" => array( "'put your unique phrase here'", "'" . addslashes( NONCE_KEY ) . "'" ), 181 181 "\$bb_table_prefix = '" => array( "'bb_'", "'" . $bp->table_prefix . "bb_'" ), 182 "define( 'BB_LANG', '" 182 "define( 'BB_LANG', '" => array( "''", "'" . WPLANG . "'" ) 183 183 ) 184 184 ); -
trunk/bp-forums/bp-forums-functions.php
r4907 r4920 54 54 55 55 $defaults = array( 56 'forum_id' 57 'forum_name' 58 'forum_desc' 59 'forum_slug' 60 'forum_parent_id' 61 'forum_order' 62 'forum_is_category' 56 'forum_id' => '', 57 'forum_name' => '', 58 'forum_desc' => '', 59 'forum_slug' => '', 60 'forum_parent_id' => bp_forums_parent_forum_id(), 61 'forum_order' => false, 62 'forum_is_category' => 0 63 63 ); 64 64 … … 82 82 'page' => 1, 83 83 'per_page' => 15, 84 'offset' 85 'number' 84 'offset' => false, 85 'number' => false, 86 86 'exclude' => false, 87 87 'show_stickies' => 'all', -
trunk/bp-forums/bp-forums-loader.php
r4907 r4920 54 54 // Note that global_tables is included in this array. 55 55 $globals = array( 56 'path' => BP_PLUGIN_DIR, 56 57 'slug' => BP_FORUMS_SLUG, 57 58 'root_slug' => isset( $bp->pages->forums->slug ) ? $bp->pages->forums->slug : BP_FORUMS_SLUG, 59 'has_directory' => true, 58 60 'notification_callback' => 'messages_format_notifications', 59 61 'search_string' => __( 'Search Forums...', 'buddypress' ), -
trunk/bp-friends/bp-friends-loader.php
r4907 r4920 75 75 'path' => BP_PLUGIN_DIR, 76 76 'slug' => BP_FRIENDS_SLUG, 77 'has_directory' => false, 77 78 'search_string' => __( 'Search Friends...', 'buddypress' ), 78 79 'notification_callback' => 'friends_format_notifications', … … 197 198 'type' => 'thumb' 198 199 ) ); 199 $bp->bp_options_title 200 $bp->bp_options_title = $bp->displayed_user->fullname; 200 201 } 201 202 } -
trunk/bp-groups/bp-groups-loader.php
r4907 r4920 77 77 // Note that global_tables is included in this array. 78 78 $globals = array( 79 'path' => BP_PLUGIN_DIR, 79 80 'slug' => BP_GROUPS_SLUG, 80 81 'root_slug' => isset( $bp->pages->groups->slug ) ? $bp->pages->groups->slug : BP_GROUPS_SLUG, 82 'has_directory' => true, 81 83 'notification_callback' => 'groups_format_notifications', 82 84 'search_string' => __( 'Search Groups...', 'buddypress' ), … … 168 170 // group's home page 169 171 bp_core_no_access( array( 170 'message' 171 'root' 172 'redirect' 172 'message' => __( 'You do not have access to this group.', 'buddypress' ), 173 'root' => bp_get_group_permalink( $bp->groups->current_group ), 174 'redirect' => false 173 175 ) ); 174 176 } else { -
trunk/bp-members/bp-members-adminbar.php
r4907 r4920 187 187 $wp_admin_bar->add_menu( array( 188 188 'parent' => 'bp-notifications', 189 'id' 189 'id' => 'no-notifications', 190 190 'title' => __( 'No new notifications', 'buddypress' ), 191 'href' 191 'href' => bp_loggedin_user_domain() 192 192 ) ); 193 193 } -
trunk/bp-members/bp-members-functions.php
r4907 r4920 76 76 'exclude' => false, // Users to exclude from results 77 77 'search_terms' => false, // Limit to users that match these search terms 78 'meta_key' 79 'meta_value' 78 'meta_key' => false, // Limit to users who have this piece of usermeta 79 'meta_value' => false, // With meta_key, limit to users where usermeta matches this value 80 80 81 81 'include' => false, // Pass comma separated list of user_ids to limit to only these users -
trunk/bp-members/bp-members-loader.php
r4907 r4920 64 64 65 65 $globals = array( 66 'path' => BP_PLUGIN_DIR, 66 67 'slug' => BP_MEMBERS_SLUG, 67 68 'root_slug' => isset( $bp->pages->members->slug ) ? $bp->pages->members->slug : BP_MEMBERS_SLUG, 69 'has_directory' => true, 68 70 'search_string' => __( 'Search Members...', 'buddypress' ), 69 71 ); -
trunk/bp-members/bp-members-template.php
r4910 r4920 298 298 'search_terms' => $search_terms, // Pass search_terms to filter users by their profile data 299 299 300 'meta_key' => false,// Only return users with this usermeta301 'meta_value' => false, // Only return users where the usermeta value matches. Requires meta_key300 'meta_key' => false, // Only return users with this usermeta 301 'meta_value' => false, // Only return users where the usermeta value matches. Requires meta_key 302 302 303 303 'populate_extras' => true // Fetch usermeta? Friend count, last active etc. -
trunk/bp-messages/bp-messages-loader.php
r4907 r4920 72 72 // Note that global_tables is included in this array. 73 73 $globals = array( 74 'path' => BP_PLUGIN_DIR, 74 75 'slug' => BP_MESSAGES_SLUG, 76 'has_directory' => false, 75 77 'notification_callback' => 'messages_format_notifications', 76 78 'search_string' => __( 'Search Messages...', 'buddypress' ), … … 97 99 'name' => $name, 98 100 'slug' => $this->slug, 99 'root_slug' => $this->root_slug,100 101 'position' => 50, 101 102 'show_for_displayed_user' => false, -
trunk/bp-settings/bp-settings-loader.php
r4907 r4920 53 53 // All globals for settings component. 54 54 $globals = array( 55 'slug' => BP_SETTINGS_SLUG, 55 'slug' => BP_SETTINGS_SLUG, 56 'has_directory' => false, 56 57 ); 57 58 -
trunk/bp-themes/bp-default/_inc/ajax.php
r4907 r4920 331 331 function bp_dtheme_get_single_activity_content() { 332 332 $activity_array = bp_activity_get_specific( array( 333 'activity_ids' 334 'display_comments' 333 'activity_ids' => $_POST['activity_id'], 334 'display_comments' => 'stream' 335 335 ) ); 336 336 -
trunk/bp-xprofile/bp-xprofile-classes.php
r4905 r4920 918 918 foreach( (array) $results as $field ) { 919 919 $profile_data[$field->field_name] = array( 920 'field_group_id' 921 'field_group_name' 922 'field_id' 923 'field_type' 924 'field_data' 920 'field_group_id' => $field->field_group_id, 921 'field_group_name' => $field->field_group_name, 922 'field_id' => $field->field_id, 923 'field_type' => $field->field_type, 924 'field_data' => $field->field_data 925 925 ); 926 926 } -
trunk/bp-xprofile/bp-xprofile-loader.php
r4907 r4920 88 88 'table_name_groups' => $bp->table_prefix . 'bp_xprofile_groups', 89 89 'table_name_fields' => $bp->table_prefix . 'bp_xprofile_fields', 90 'table_name_meta' 90 'table_name_meta' => $bp->table_prefix . 'bp_xprofile_meta', 91 91 ); 92 92 93 93 $globals = array( 94 94 'slug' => BP_XPROFILE_SLUG, 95 ' root_slug' => isset( $bp->pages->xprofile->slug ) ? $bp->pages->xprofile->slug : BP_XPROFILE_SLUG,95 'has_directory' => false, 96 96 'notification_callback' => 'xprofile_format_notifications', 97 97 'global_tables' => $global_tables
Note: See TracChangeset
for help on using the changeset viewer.