Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/08/2014 09:12:34 PM (12 years ago)
Author:
boonebgorges
Message:

Improved inline documentation in the Messages component.

See #5022

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-notifications.php

    r8414 r8482  
    1414
    1515/**
    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 * }
    2027 */
    2128function messages_notification_new_message( $raw_args = array() ) {
     
    102109
    103110/**
    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.
    112123 */
    113124function messages_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
     
    151162
    152163/**
    153  * Send notifications to message recipients
     164 * Send notifications to message recipients.
    154165 *
    155166 * @since BuddyPress (1.9.0)
    156  * @param obj $message
     167 *
     168 * @param BP_Messages_Message $message Message object.
    157169 */
    158170function bp_messages_message_sent_add_notification( $message ) {
Note: See TracChangeset for help on using the changeset viewer.