Skip to:
Content

BuddyPress.org

Changeset 1750 for trunk/bp-status.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-status.php

    r1749 r1750  
    1313        $bp->status->slug = BP_STATUS_SLUG;
    1414       
    15         /* Register the activity stream actions for this component */
    16         bp_status_register_activity_action( 'new_status', __( 'New status update', 'buddypress' ) );
    17 
    1815        /* Register this in the active components array */
    1916        $bp->active_components[$bp->status->slug] = $bp->status->id;
     
    2926 * notifications for the user and for this specific component.
    3027 */
     28
     29function bp_status_register_activity_actions() {
     30        global $bp;
     31       
     32        if ( !function_exists( 'bp_activity_set_action' ) )
     33                return false;
     34
     35        /* Register the activity stream actions for this component */
     36        bp_activity_set_action( $bp->status->id, 'new_status', __( 'New status update', 'buddypress' ) );
     37
     38        do_action( 'bp_status_register_activity_actions' );
     39}
     40add_action( 'plugins_loaded', 'bp_status_register_activity_actions' );
    3141
    3242function bp_status_record_activity( $user_id, $content, $primary_link, $component_action = 'new_status' ) {
Note: See TracChangeset for help on using the changeset viewer.