Changeset 1750 for trunk/bp-friends.php
- Timestamp:
- 09/01/2009 02:12:35 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-friends.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends.php
r1749 r1750 47 47 $bp->friends->format_notification_function = 'friends_format_notifications'; 48 48 $bp->friends->slug = BP_FRIENDS_SLUG; 49 50 /* Register the activity stream actions for this component */ 51 friends_register_activity_action( 'friendship_created', __( 'New friendship created', 'buddypress' ) ); 52 49 53 50 /* Register this in the active components array */ 54 51 $bp->active_components[$bp->friends->slug] = $bp->friends->id; … … 326 323 } 327 324 328 function friends_register_activity_action ( $key, $value) {325 function friends_register_activity_actions() { 329 326 global $bp; 330 327 331 328 if ( !function_exists( 'bp_activity_set_action' ) ) 332 329 return false; 333 334 return apply_filters( 'friends_register_activity_action', bp_activity_set_action( $bp->friends->id, $key, $value ), $key, $value ); 335 } 330 331 bp_activity_set_action( $bp->friends->id, 'friends_register_activity_action', __( 'New friendship created', 'buddypress' ) ); 332 333 do_action( 'friends_register_activity_actions' ); 334 } 335 add_action( 'plugins_loaded', 'friends_register_activity_actions' ); 336 336 337 337 function friends_format_notifications( $action, $item_id, $secondary_item_id, $total_items ) {
Note: See TracChangeset
for help on using the changeset viewer.