Changeset 9027 for trunk/src/bp-groups/bp-groups-notifications.php
- Timestamp:
- 09/17/2014 01:49:22 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-notifications.php
r8576 r9027 17 17 18 18 /** 19 * Notify all group members when a group is updated 19 * Notify all group members when a group is updated. 20 20 * 21 21 * @since BuddyPress (1.0.0) 22 22 * 23 * @param int $group_id 23 * @param int $group_id ID of the group. 24 24 */ 25 25 function groups_notification_group_updated( $group_id = 0 ) { … … 69 69 70 70 /** 71 * Notify group admin about new membership request 71 * Notify group admin about new membership request. 72 72 * 73 73 * @since BuddyPress (1.0.0) 74 74 * 75 * @param int $requesting_user_id 76 * @param int $admin_id 77 * @param int $group_id 78 * @param int $membership_id 79 * @return bool ean75 * @param int $requesting_user_id ID of the user requesting group membership. 76 * @param int $admin_id ID of the group admin. 77 * @param int $group_id ID of the group. 78 * @param int $membership_id ID of the group membership object. 79 * @return bool|null False on failure. 80 80 */ 81 81 function groups_notification_new_membership_request( $requesting_user_id = 0, $admin_id = 0, $group_id = 0, $membership_id = 0 ) { … … 145 145 146 146 /** 147 * Notify member about their group membership request 147 * Notify member about their group membership request. 148 148 * 149 149 * @since BuddyPress (1.0.0) 150 150 * 151 * @param type $requesting_user_id 152 * @param type $group_id 153 * @param type $accepted 151 * @param int $requesting_user_id ID of the user requesting group membership. 152 * @param int $group_id ID of the group. 153 * @param bool $accepted Optional. Whether the membership request was accepted. 154 * Default: true. 154 155 * @return boolean 155 156 */ … … 224 225 225 226 /** 226 * Notify group member they have been promoted 227 * Notify group member they have been promoted. 227 228 * 228 229 * @since BuddyPress (1.0.0) 229 230 * 230 * @param int $user_id 231 * @param int $group_id 232 * @return bool ean231 * @param int $user_id ID of the user. 232 * @param int $group_id ID of the group. 233 * @return bool|null False on failure. 233 234 */ 234 235 function groups_notification_promoted_member( $user_id = 0, $group_id = 0 ) { … … 292 293 293 294 /** 294 * Notify a member they have been invit ated to a group295 * Notify a member they have been invited to a group. 295 296 * 296 297 * @since BuddyPress (1.0.0) 297 298 * 298 * @param object $group299 * @param object $member300 * @param int $inviter_user_id 301 * @return bool ean299 * @param BP_Groups_Group $group Group object. 300 * @param BP_Groups_Member $member Member object. 301 * @param int $inviter_user_id ID of the user who sent the invite. 302 * @return bool|null False on failure. 302 303 */ 303 304 function groups_notification_group_invites( &$group, &$member, $inviter_user_id ) { … … 375 376 * @since BuddyPress (1.0.0) 376 377 * 377 * @param string $action The kind of notification being rendered 378 * @param int $item_id The primary item id 379 * @param int $secondary_item_id The secondary item id 380 * @param int $total_items The total number of messaging-related notifications waiting for the user 381 * @param string $format 'string' for BuddyBar-compatible notifications; 'array' for WP Toolbar 378 * @param string $action The kind of notification being rendered. 379 * @param int $item_id The primary item ID. 380 * @param int $secondary_item_id The secondary item ID. 381 * @param int $total_items The total number of messaging-related notifications 382 * waiting for the user. 383 * @param string $format 'string' for BuddyBar-compatible notifications; 'array' 384 * for WP Toolbar. Default: 'string'. 385 * @return string 382 386 */ 383 387 function groups_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { … … 611 615 612 616 /** 613 * Remove all notifications for any member belonging to a specific group 617 * Remove all notifications for any member belonging to a specific group. 614 618 * 615 619 * @since BuddyPress (1.9.0) 620 * 621 * @param int $group_id ID of the group. 616 622 */ 617 623 function bp_groups_delete_group_delete_all_notifications( $group_id ) { … … 626 632 * 627 633 * @since BuddyPress (2.0.0) 634 * 635 * @param int $user_id ID of the user. 636 * @param int $group_id ID of the group. 628 637 */ 629 638 function bp_groups_delete_promotion_notifications( $user_id = 0, $group_id = 0 ) { … … 636 645 637 646 /** 638 * Mark notifications read when a member accepts a group invitation 647 * Mark notifications read when a member accepts a group invitation. 639 648 * 640 649 * @since BuddyPress (1.9.0) 641 * @param int $user_id 642 * @param int $group_id 650 * 651 * @param int $user_id ID of the user. 652 * @param int $group_id ID of the group. 643 653 */ 644 654 function bp_groups_accept_invite_mark_notifications( $user_id, $group_id ) { … … 652 662 653 663 /** 654 * Mark notifications read when a member views their group memberships 664 * Mark notifications read when a member views their group memberships. 655 665 * 656 666 * @since BuddyPress (1.9.0) … … 676 686 677 687 /** 678 * Mark group invitation notifications read when a member views their invitations 688 * Mark group invitation notifications read when a member views their invitations. 679 689 * 680 690 * @since BuddyPress (1.9.0) … … 688 698 689 699 /** 690 * Mark group join requests read when an admin or moderator visits the group 691 * administration area. 700 * Mark group join requests read when an admin or moderator visits the group administration area. 692 701 * 693 702 * @since BuddyPress (1.9.0) … … 704 713 * 705 714 * @since BuddyPress (1.9.0) 706 * @param int $user_id 715 * 716 * @param int $user_id ID of the user. 707 717 */ 708 718 function bp_groups_remove_data_for_user_notifications( $user_id ) {
Note: See TracChangeset
for help on using the changeset viewer.