Changeset 8037
- Timestamp:
- 03/04/2014 09:55:52 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-notifications.php
r7653 r8037 62 62 bp_notifications_add_notification( array( 63 63 'user_id' => $admin_id, 64 'item_id' => $ requesting_user_id,65 'secondary_item_id' => $ group_id,64 'item_id' => $group_id, 65 'secondary_item_id' => $requesting_user_id, 66 66 'component_name' => buddypress()->groups->id, 67 67 'component_action' => 'new_membership_request' … … 72 72 return false; 73 73 74 // Username of the user requesting a membership: %1$s in mail 74 75 $requesting_user_name = bp_core_get_user_displayname( $requesting_user_id ); 75 76 $group = groups_get_group( array( 'group_id' => $group_id ) ); 76 77 78 // Group Administrator user's data 77 79 $ud = bp_core_get_core_userdata( $admin_id ); 78 80 $group_requests = bp_get_group_permalink( $group ) . 'admin/membership-requests'; 81 82 // Link to the user's profile who's requesting a membership: %3$s in mail 79 83 $profile_link = bp_core_get_user_domain( $requesting_user_id ); 84 80 85 $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; 81 $settings_link = bp_core_get_user_domain( $requesting_user_id ) . $settings_slug . '/notifications/'; 86 // Link to the group administrator email settings: %s in "disable notifications" part of the email 87 $settings_link = bp_core_get_user_domain( $admin_id ) . $settings_slug . '/notifications/'; 82 88 83 89 // Set up and send the message … … 317 323 switch ( $action ) { 318 324 case 'new_membership_request': 319 $group_id = $ secondary_item_id;320 $requesting_user_id = $ item_id;325 $group_id = $item_id; 326 $requesting_user_id = $secondary_item_id; 321 327 322 328 $group = groups_get_group( array( 'group_id' => $group_id ) );
Note: See TracChangeset
for help on using the changeset viewer.