Changeset 1750 for trunk/bp-status.php
- Timestamp:
- 09/01/2009 02:12:35 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-status.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-status.php
r1749 r1750 13 13 $bp->status->slug = BP_STATUS_SLUG; 14 14 15 /* Register the activity stream actions for this component */16 bp_status_register_activity_action( 'new_status', __( 'New status update', 'buddypress' ) );17 18 15 /* Register this in the active components array */ 19 16 $bp->active_components[$bp->status->slug] = $bp->status->id; … … 29 26 * notifications for the user and for this specific component. 30 27 */ 28 29 function bp_status_register_activity_actions() { 30 global $bp; 31 32 if ( !function_exists( 'bp_activity_set_action' ) ) 33 return false; 34 35 /* Register the activity stream actions for this component */ 36 bp_activity_set_action( $bp->status->id, 'new_status', __( 'New status update', 'buddypress' ) ); 37 38 do_action( 'bp_status_register_activity_actions' ); 39 } 40 add_action( 'plugins_loaded', 'bp_status_register_activity_actions' ); 31 41 32 42 function bp_status_record_activity( $user_id, $content, $primary_link, $component_action = 'new_status' ) {
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)