Changeset 1749 for trunk/bp-xprofile.php
- Timestamp:
- 09/01/2009 01:45:37 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile.php
r1739 r1749 8 8 require ( BP_PLUGIN_DIR . '/bp-xprofile/bp-xprofile-classes.php' ); 9 9 require ( BP_PLUGIN_DIR . '/bp-xprofile/bp-xprofile-filters.php' ); 10 require ( BP_PLUGIN_DIR . '/bp-xprofile/bp-xprofile-signup.php' );11 10 require ( BP_PLUGIN_DIR . '/bp-xprofile/bp-xprofile-templatetags.php' ); 12 11 require ( BP_PLUGIN_DIR . '/bp-xprofile/bp-xprofile-notifications.php' ); … … 142 141 $bp->profile->slug = BP_XPROFILE_SLUG; 143 142 143 /* Register the activity stream actions for this component */ 144 xprofile_register_activity_action( 'new_wire_post', __( 'New profile wire post', 'buddypress' ) ); 145 144 146 /* Register this in the active components array */ 145 147 $bp->active_components[$bp->profile->slug] = $bp->profile->id; 146 148 149 /* Set the support field type ids */ 147 150 $bp->profile->field_types = apply_filters( 'xprofile_field_types', array( 'textbox', 'textarea', 'radio', 'checkbox', 'selectbox', 'multiselectbox', 'datebox' ) ); 148 151 149 if ( function_exists( 'bp_wire_install') )152 if ( function_exists( 'bp_wire_install' ) ) 150 153 $bp->profile->table_name_wire = $wpdb->base_prefix . 'bp_xprofile_wire'; 151 154 } … … 630 633 } 631 634 635 function xprofile_register_activity_action( $key, $value ) { 636 global $bp; 637 638 if ( !function_exists( 'bp_activity_set_action' ) ) 639 return false; 640 641 return apply_filters( 'xprofile_register_activity_action', bp_activity_set_action( $bp->profile->id, $key, $value ), $key, $value ); 642 } 643 632 644 /** 633 645 * xprofile_format_notifications()
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)