Changeset 9995 for trunk/src/bp-friends/bp-friends-notifications.php
- Timestamp:
- 07/04/2015 10:23:19 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/bp-friends-notifications.php
r9819 r9995 2 2 3 3 /** 4 * BuddyPress Friends Activity Functions 4 * BuddyPress Friends Activity Functions. 5 5 * 6 6 * These functions handle the recording, deleting and formatting of activity … … 23 23 * 24 24 * @param int $friendship_id ID of the friendship object. 25 * @param int $initiator_id ID of the user who initiated the request. 26 * @param int $friend_id ID of the request recipient. 25 * @param int $initiator_id ID of the user who initiated the request. 26 * @param int $friend_id ID of the request recipient. 27 * 28 * @return bool 27 29 */ 28 30 function friends_notification_new_request( $friendship_id, $initiator_id, $friend_id ) { … … 71 73 * @since BuddyPress (1.2.0) 72 74 * 73 * @param string $subject Subject line to be used in friend request email.75 * @param string $subject Subject line to be used in friend request email. 74 76 * @param string $initiator_name Name of the person requesting friendship. 75 77 */ … … 81 83 * @since BuddyPress (1.2.0) 82 84 * 83 * @param string $message Message to be used in friend request email.84 * @param string $initiator_name Name of the person requesting friendship.85 * @param string $initiator_link Profile link of person requesting friendship.85 * @param string $message Message to be used in friend request email. 86 * @param string $initiator_name Name of the person requesting friendship. 87 * @param string $initiator_link Profile link of person requesting friendship. 86 88 * @param string $all_requests_link User's friends request management link. 87 * @param string $settings_link Email recipient's settings management link.89 * @param string $settings_link Email recipient's settings management link. 88 90 */ 89 91 $message = apply_filters( 'friends_notification_new_request_message', $message, $initiator_name, $initiator_link, $all_requests_link, $settings_link ); … … 96 98 * @since BuddyPress (1.5.0) 97 99 * 98 * @param int $friend_id ID of the request recipient.99 * @param string $subject Text for the friend request subject field.100 * @param string $message Text for the friend request message field.100 * @param int $friend_id ID of the request recipient. 101 * @param string $subject Text for the friend request subject field. 102 * @param string $message Text for the friend request message field. 101 103 * @param int $friendship_id ID of the friendship object. 102 * @param int $initiator_id ID of the friendship requester.104 * @param int $initiator_id ID of the friendship requester. 103 105 */ 104 106 do_action( 'bp_friends_sent_request_email', $friend_id, $subject, $message, $friendship_id, $initiator_id ); … … 113 115 * 114 116 * @param int $friendship_id ID of the friendship object. 115 * @param int $initiator_id ID of the user who initiated the request. 116 * @param int $friend_id ID of the request recipient. 117 * @param int $initiator_id ID of the user who initiated the request. 118 * @param int $friend_id ID of the request recipient. 119 * 120 * @return bool 117 121 */ 118 122 function friends_notification_accepted_request( $friendship_id, $initiator_id, $friend_id ) { … … 158 162 * @since BuddyPress (1.2.0) 159 163 * 160 * @param string $subject Subject line to be used in friend request accepted email.164 * @param string $subject Subject line to be used in friend request accepted email. 161 165 * @param string $friend_name Name of the person who accepted the friendship request. 162 166 */ … … 168 172 * @since BuddyPress (1.2.0) 169 173 * 170 * @param string $message Message to be used in friend request email.171 * @param string $friend_name Name of the person who accepted the friendship request.172 * @param string $friend_link Profile link of person who accepted the friendship request.174 * @param string $message Message to be used in friend request email. 175 * @param string $friend_name Name of the person who accepted the friendship request. 176 * @param string $friend_link Profile link of person who accepted the friendship request. 173 177 * @param string $settings_link Email recipient's settings management link. 174 178 */ … … 182 186 * @since BuddyPress (1.5.0) 183 187 * 184 * @param int $initiator_id ID of the friendship requester.185 * @param string $subject Text for the friend request subject field.186 * @param string $message Text for the friend request message field.188 * @param int $initiator_id ID of the friendship requester. 189 * @param string $subject Text for the friend request subject field. 190 * @param string $message Text for the friend request message field. 187 191 * @param int $friendship_id ID of the friendship object. 188 * @param int $friend_id ID of the request recipient.192 * @param int $friend_id ID of the request recipient. 189 193 */ 190 194 do_action( 'bp_friends_sent_accepted_email', $initiator_id, $subject, $message, $friendship_id, $friend_id ); … … 197 201 * Notification formatting callback for bp-friends notifications. 198 202 * 199 * @param string $action The kind of notification being rendered. 200 * @param int $item_id The primary item ID. 201 * @param int $secondary_item_id The secondary item ID. 202 * @param int $total_items The total number of messaging-related notifications 203 * waiting for the user. 204 * @param string $format 'string' for BuddyBar-compatible notifications; 205 * 'array' for WP Toolbar. Default: 'string'. 203 * @param string $action The kind of notification being rendered. 204 * @param int $item_id The primary item ID. 205 * @param int $secondary_item_id The secondary item ID. 206 * @param int $total_items The total number of messaging-related notifications 207 * waiting for the user. 208 * @param string $format 'string' for BuddyBar-compatible notifications; 209 * 'array' for WP Toolbar. Default: 'string'. 210 * 206 211 * @return array|string 207 212 */ … … 328 333 * 329 334 * @since BuddyPress (1.9.0) 330 * @param int $friendship_id The unique ID of the friendship331 * @param int $initiator_user_id The friendship initiator user ID 332 * @param int $friend_user_id The friendship request receiver user ID335 * @param int $friendship_id The unique ID of the friendship. 336 * @param int $initiator_user_id The friendship initiator user ID. 337 * @param int $friend_user_id The friendship request receiver user ID. 333 338 */ 334 339 function bp_friends_friendship_requested_notification( $friendship_id, $initiator_user_id, $friend_user_id ) { … … 352 357 * @since BuddyPress (1.9.0) 353 358 * 354 * @param int $friendship_id (not used)359 * @param int $friendship_id (not used) 355 360 * @param object $friendship 356 361 */ … … 366 371 * 367 372 * @since BuddyPress (1.9.0) 368 * @param int $friendship_id The unique ID of the friendship 369 * @param int $initiator_user_id The friendship initiator user ID 370 * @param int $friend_user_id The friendship request receiver user ID 373 * 374 * @param int $friendship_id The unique ID of the friendship. 375 * @param int $initiator_user_id The friendship initiator user ID. 376 * @param int $friend_user_id The friendship request receiver user ID. 371 377 */ 372 378 function bp_friends_add_friendship_accepted_notification( $friendship_id, $initiator_user_id, $friend_user_id ) { … … 394 400 395 401 /** 396 * Remove friend request notice when a member withdraws their friend request 397 * 398 * @since BuddyPress (1.9.0) 399 * 400 * @param int $friendship_id (not used)402 * Remove friend request notice when a member withdraws their friend request. 403 * 404 * @since BuddyPress (1.9.0) 405 * 406 * @param int $friendship_id (not used) 401 407 * @param object $friendship 402 408 */ … … 409 415 410 416 /** 411 * Remove friendship requests FROM user, used primarily when a user is deleted 412 * 413 * @since BuddyPress (1.9.0) 417 * Remove friendship requests FROM user, used primarily when a user is deleted. 418 * 419 * @since BuddyPress (1.9.0) 420 * 414 421 * @param int $user_id 415 422 */
Note: See TracChangeset
for help on using the changeset viewer.