Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/13/2015 01:35:21 AM (12 years ago)
Author:
tw2113
Message:

Adds hooks documentation to the BP-Notifications component.

Fixes #5946.

File:
1 edited

Legend:

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

    r8958 r9352  
    2121 */
    2222function bp_notifications_screen_unread() {
     23
     24        /**
     25         * Fires right before the loading of the notifications unread screen template file.
     26         *
     27         * @since BuddyPress (1.9.0)
     28         */
    2329        do_action( 'bp_notifications_screen_unread' );
    2430
     31        /**
     32         * Filters the template to load for the notifications unread screen.
     33         *
     34         * @since BuddyPress (1.9.0)
     35         *
     36         * @param string $template Path to the notifications unread template to load.
     37         */
    2538        bp_core_load_template( apply_filters( 'bp_notifications_template_unread', 'members/single/home' ) );
    2639}
     
    3245 */
    3346function bp_notifications_screen_read() {
     47
     48        /**
     49         * Fires right before the loading of the notifications read screen template file.
     50         *
     51         * @since BuddyPress (1.9.0)
     52         */
    3453        do_action( 'bp_notifications_screen_read' );
    3554
     55        /**
     56         * Filters the template to load for the notifications read screen.
     57         *
     58         * @since BuddyPress (1.9.0)
     59         *
     60         * @param string $template Path to the notifications read template to load.
     61         */
    3662        bp_core_load_template( apply_filters( 'bp_notifications_template_read', 'members/single/home' ) );
    3763}
Note: See TracChangeset for help on using the changeset viewer.