Changeset 1749 for trunk/bp-status.php
- Timestamp:
- 09/01/2009 01:45:37 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-status.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-status.php
r1723 r1749 12 12 $bp->status->id = 'status'; 13 13 $bp->status->slug = BP_STATUS_SLUG; 14 15 /* Register the activity stream actions for this component */ 16 bp_status_register_activity_action( 'new_status', __( 'New status update', 'buddypress' ) ); 14 17 15 18 /* Register this in the active components array */ … … 19 22 add_action( 'admin_menu', 'bp_status_setup_globals', 2 ); 20 23 21 function bp_status_record_activity( $user_id, $content, $primary_link ) { 24 25 /******************************************************************************** 26 * Activity & Notification Functions 27 * 28 * These functions handle the recording, deleting and formatting of activity and 29 * notifications for the user and for this specific component. 30 */ 31 32 function bp_status_record_activity( $user_id, $content, $primary_link, $component_action = 'new_status' ) { 22 33 if ( !function_exists( 'bp_activity_add' ) ) 23 34 return false; … … 28 39 'primary_link' => $primary_link, 29 40 'component_name' => 'status', 30 'component_action' => 'new_status'41 'component_action' => $component_action 31 42 ) ); 32 43 } … … 55 66 56 67 return apply_filters( 'bp_status_format_activity', $stream_item, $user_id, $content, $component_action ); 68 } 69 70 function bp_status_register_activity_action( $key, $value ) { 71 global $bp; 72 73 if ( !function_exists( 'bp_activity_set_action' ) ) 74 return false; 75 76 return apply_filters( 'bp_status_register_activity_action', bp_activity_set_action( $bp->status->id, $key, $value ), $key, $value ); 57 77 } 58 78
Note: See TracChangeset
for help on using the changeset viewer.