Skip to:
Content

BuddyPress.org

Changeset 871 for trunk/bp-xprofile.php


Ignore:
Timestamp:
01/19/2009 05:09:19 AM (16 years ago)
Author:
apeatling
Message:

Added hooks to screen and activity/notification formatting functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile.php

    r854 r871  
    276276        bp_core_delete_notifications_for_user_by_item_id( $bp['loggedin_userid'], $bp['current_userid'], 'friends', 'friendship_accepted' );
    277277   
     278    do_action( 'xprofile_screen_display_profile', $is_new_friend );
    278279    bp_catch_uri( 'profile/index' );
    279280}
     
    290291 */
    291292function xprofile_screen_edit_profile() {
    292     if ( bp_is_home() )
     293    if ( bp_is_home() ) {
     294        do_action( 'xprofile_screen_edit_profile' );
    293295        bp_catch_uri( 'profile/edit' );
     296    }
    294297}
    295298
     
    307310    if ( bp_is_home() ) {
    308311        add_action( 'wp_head', 'bp_core_add_cropper_js' );
     312        do_action( 'xprofile_screen_change_avatar' );
    309313        bp_catch_uri( 'profile/change-avatar' );
    310314    }
     
    338342        </tr>
    339343        <?php } ?>
     344       
     345        <?php do_action( 'xprofile_screen_notification_settings' ) ?>
    340346    </table>
    341347<?php   
     
    450456 * Activity and notification recording functions
    451457 */
    452 
    453458
    454459/**
     
    564569    }
    565570   
     571    do_action( 'xprofile_format_activity', $action, $item_id, $user_id, $action, $secondary_item_id, $for_secondary_user );
     572   
    566573    return false;
    567574}
     
    591598        }
    592599    }
     600   
     601    do_action( 'xprofile_format_notifications', $action, $item_id, $secondary_item_id, $total_items );
    593602   
    594603    return false;
Note: See TracChangeset for help on using the changeset viewer.