Changeset 8482 for trunk/src/bp-messages/bp-messages-notifications.php
- Timestamp:
- 06/08/2014 09:12:34 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/bp-messages-notifications.php
r8414 r8482 14 14 15 15 /** 16 * Email message recipients to alert them of a new unread private message 17 * 18 * @since BuddyPress (1.0) 19 * @param array $raw_args 16 * Email message recipients to alert them of a new unread private message. 17 * 18 * @since BuddyPress (1.0.0) 19 * 20 * @param array|BP_Messages_Message $raw_args { 21 * Array of arguments. Also accepts a BP_Messages_Message object. 22 * @type array $recipients User IDs of recipients. 23 * @type string $email_subject Subject line of message. 24 * @type string $email_content Content of message. 25 * @type int $sender_id User ID of sender. 26 * } 20 27 */ 21 28 function messages_notification_new_message( $raw_args = array() ) { … … 102 109 103 110 /** 104 * Format the BuddyBar/Toolbar notifications for the Messages component 105 * 106 * @since BuddyPress (1.0) 107 * @param string $action The kind of notification being rendered 108 * @param int $item_id The primary item id 109 * @param int $secondary_item_id The secondary item id 110 * @param int $total_items The total number of messaging-related notifications waiting for the user 111 * @param string $format 'string' for BuddyBar-compatible notifications; 'array' for WP Toolbar 111 * Format the BuddyBar/Toolbar notifications for the Messages component. 112 * 113 * @since BuddyPress (1.0.0) 114 * 115 * @param string $action The kind of notification being rendered. 116 * @param int $item_id The primary item id. 117 * @param int $secondary_item_id The secondary item id. 118 * @param int $total_items The total number of messaging-related notifications 119 * waiting for the user 120 * @param string $format Return value format. 'string' for BuddyBar-compatible 121 * notifications; 'array' for WP Toolbar. Default: 'string'. 122 * @return string|array Formatted notifications. 112 123 */ 113 124 function messages_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { … … 151 162 152 163 /** 153 * Send notifications to message recipients 164 * Send notifications to message recipients. 154 165 * 155 166 * @since BuddyPress (1.9.0) 156 * @param obj $message 167 * 168 * @param BP_Messages_Message $message Message object. 157 169 */ 158 170 function bp_messages_message_sent_add_notification( $message ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)