Skip to:
Content

BuddyPress.org

Changeset 1750 for trunk/bp-xprofile.php


Ignore:
Timestamp:
09/01/2009 02:12:35 AM (17 years ago)
Author:
apeatling
Message:

Further activity action revisions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile.php

    r1749 r1750  
    140140        $bp->profile->format_notification_function = 'xprofile_format_notifications';
    141141        $bp->profile->slug = BP_XPROFILE_SLUG;
    142 
    143         /* Register the activity stream actions for this component */
    144         xprofile_register_activity_action( 'new_wire_post', __( 'New profile wire post', 'buddypress' ) );
    145142
    146143        /* Register this in the active components array */
     
    580577 */
    581578
     579function xprofile_register_activity_actions() {
     580        global $bp;
     581       
     582        if ( !function_exists( 'bp_activity_set_action' ) )
     583                return false;
     584
     585        /* Register the activity stream actions for this component */
     586        bp_activity_set_action( $bp->profile->id, 'new_wire_post', __( 'New profile wire post', 'buddypress' ) );
     587
     588        do_action( 'xprofile_register_activity_actions' );
     589}
     590add_action( 'plugins_loaded', 'xprofile_register_activity_actions' );
     591
    582592/**
    583593 * xprofile_record_activity()
Note: See TracChangeset for help on using the changeset viewer.