Changeset 1852 for trunk/bp-groups.php
- Timestamp:
- 09/10/2009 08:36:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups.php
r1829 r1852 347 347 348 348 groups_record_activity( array( 349 'content' => sprintf( __( '%s joined the group %s', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $group ) . '">' . attribute_escape( $group->name ) . '</a>'),350 'primary_link' => bp_get_group_permalink($group ),349 'content' => apply_filters( 'groups_activity_accepted_invite', sprintf( __( '%s joined the group %s', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $group ) . '">' . attribute_escape( $group->name ) . '</a>' ), $bp->loggedin_user->id, &$group ), 350 'primary_link' => apply_filters( 'groups_activity_accepted_invite_primary_link', bp_get_group_permalink( $group ), &$group ), 351 351 'component_action' => 'joined_group', 352 352 'item_id' => $group->id … … 490 490 /* Once we compelete all steps, record the group creation in the activity stream. */ 491 491 groups_record_activity( array( 492 'content' => sprintf( __( '%s created the group %s', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>'),493 'primary_link' => bp_get_group_permalink( $bp->groups->current_group),492 'content' => apply_filters( 'groups_activity_created_group', sprintf( __( '%s created the group %s', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' ) ), 493 'primary_link' => apply_filters( 'groups_activity_created_group_primary_link', bp_get_group_permalink( $bp->groups->current_group ) ), 494 494 'component_action' => 'created_group', 495 495 'item_id' => $bp->groups->new_group_id … … 1781 1781 /* Record this in activity streams */ 1782 1782 groups_record_activity( array( 1783 'content' => sprintf( __( '%s joined the group %s', 'buddypress'), bp_core_get_userlink( $user_id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>'),1784 'primary_link' => bp_get_group_permalink( $bp->groups->current_group),1783 'content' => apply_filters( 'groups_activity_joined_group', sprintf( __( '%s joined the group %s', 'buddypress'), bp_core_get_userlink( $user_id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' ) ), 1784 'primary_link' => apply_filters( 'groups_activity_joined_group_primary_link', bp_get_group_permalink( $bp->groups->current_group ) ), 1785 1785 'component_action' => 'joined_group', 1786 1786 'item_id' => $bp->groups->current_group->id … … 1985 1985 1986 1986 groups_record_activity( array( 1987 'content' => $activity_content,1988 'primary_link' => bp_get_group_permalink( $bp->groups->current_group),1987 'content' => apply_filters( 'groups_activity_new_wire_post', $activity_content ), 1988 'primary_link' => apply_filters( 'groups_activity_new_wire_post_primary_link', bp_get_group_permalink( $bp->groups->current_group ) ), 1989 1989 'component_action' => 'new_wire_post', 1990 1990 'item_id' => $bp->groups->current_group->id, … … 2046 2046 /* Record this in activity streams */ 2047 2047 groups_record_activity( array( 2048 'content' => $activity_content,2049 'primary_link' => bp_get_group_permalink( $bp->groups->current_group),2048 'content' => apply_filters( 'groups_activity_new_forum_post', $activity_content, $post_text, &$topic, &$forum_post ), 2049 'primary_link' => apply_filters( 'groups_activity_new_forum_post_primary_link', bp_get_group_permalink( $bp->groups->current_group ) ), 2050 2050 'component_action' => 'new_forum_post', 2051 2051 'item_id' => $bp->groups->current_group->id, … … 2072 2072 /* Record this in activity streams */ 2073 2073 groups_record_activity( array( 2074 'content' => $activity_content,2075 'primary_link' => bp_get_group_permalink( $bp->groups->current_group),2074 'content' => apply_filters( 'groups_activity_new_forum_topic', $activity_content, $topic_text, &$topic ), 2075 'primary_link' => apply_filters( 'groups_activity_new_forum_topic_primary_link', bp_get_group_permalink( $bp->groups->current_group ) ), 2076 2076 'component_action' => 'new_forum_topic', 2077 2077 'item_id' => $bp->groups->current_group->id, … … 2099 2099 /* Record this in activity streams */ 2100 2100 groups_record_activity( array( 2101 'content' => $activity_content,2102 'primary_link' => bp_get_group_permalink( $bp->groups->current_group),2101 'content' => apply_filters( 'groups_activity_new_forum_topic', $activity_content, $topic_text, &$topic ), 2102 'primary_link' => apply_filters( 'groups_activity_new_forum_topic_primary_link', bp_get_group_permalink( $bp->groups->current_group ) ), 2103 2103 'component_action' => 'new_forum_topic', 2104 2104 'item_id' => (int)$bp->groups->current_group->id, … … 2150 2150 /* Record this in activity streams */ 2151 2151 groups_record_activity( array( 2152 'content' => $activity_content,2153 'primary_link' => bp_get_group_permalink( $bp->groups->current_group),2152 'content' => apply_filters( 'groups_activity_new_forum_post', $activity_content, $post_text, &$topic, &$forum_post ), 2153 'primary_link' => apply_filters( 'groups_activity_new_forum_post_primary_link', bp_get_group_permalink( $bp->groups->current_group ) ), 2154 2154 'component_action' => 'new_forum_post', 2155 2155 'item_id' => $bp->groups->current_group->id, … … 2401 2401 2402 2402 groups_record_activity( array( 2403 'content' => sprintf( __( '%s joined the group %s', 'buddypress'), bp_core_get_userlink( $user_id ), '<a href="' . bp_get_group_permalink( $group ) . '">' . attribute_escape( $group->name ) . '</a>'),2404 'primary_link' => bp_get_group_permalink($group ),2403 'content' => apply_filters( 'groups_activity_membership_accepted', sprintf( __( '%s joined the group %s', 'buddypress'), bp_core_get_userlink( $user_id ), '<a href="' . bp_get_group_permalink( $group ) . '">' . attribute_escape( $group->name ) . '</a>' ), $user_id, &$group ), 2404 'primary_link' => apply_filters( 'groups_activity_membership_accepted_primary_link', bp_get_group_permalink( $group ), &$group ), 2405 2405 'component_action' => 'joined_group', 2406 2406 'item_id' => $group->id,
Note: See TracChangeset
for help on using the changeset viewer.