Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/21/2010 07:33:39 PM (16 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2203 and #2497. Introduces bp_core_current_time function as central handler for all time related functions. Removes unused bp_core_format_time in lieu of currently used bp_format_time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-activity.php

    r3111 r3142  
    627627
    628628        $defaults = array(
    629                 'id' => false, // Pass an existing activity ID to update an existing entry.
    630 
    631                 'action' => '', // The activity action - e.g. "Jon Doe posted an update"
    632                 'content' => '', // Optional: The content of the activity item e.g. "BuddyPress is awesome guys!"
    633 
    634                 'component' => false, // The name/ID of the component e.g. groups, profile, mycomponent
    635                 'type' => false, // The activity type e.g. activity_update, profile_updated
    636                 'primary_link' => '', // Optional: The primary URL for this item in RSS feeds (defaults to activity permalink)
    637 
    638                 'user_id' => $bp->loggedin_user->id, // Optional: The user to record the activity for, can be false if this activity is not for a user.
    639                 'item_id' => false, // Optional: The ID of the specific item being recorded, e.g. a blog_id
     629                'id'                => false, // Pass an existing activity ID to update an existing entry.
     630
     631                'action'            => '', // The activity action - e.g. "Jon Doe posted an update"
     632                'content'           => '', // Optional: The content of the activity item e.g. "BuddyPress is awesome guys!"
     633
     634                'component'         => false, // The name/ID of the component e.g. groups, profile, mycomponent
     635                'type'              => false, // The activity type e.g. activity_update, profile_updated
     636                'primary_link'      => '', // Optional: The primary URL for this item in RSS feeds (defaults to activity permalink)
     637
     638                'user_id'           => $bp->loggedin_user->id, // Optional: The user to record the activity for, can be false if this activity is not for a user.
     639                'item_id'           => false, // Optional: The ID of the specific item being recorded, e.g. a blog_id
    640640                'secondary_item_id' => false, // Optional: A second ID used to further filter e.g. a comment_id
    641                 'recorded_time' => gmdate( "Y-m-d H:i:s" ), // The GMT time that this activity was recorded
    642                 'hide_sitewide' => false // Should this be hidden on the sitewide activity stream?
     641                'recorded_time'     => bp_core_current_time(), // The GMT time that this activity was recorded
     642                'hide_sitewide'     => false // Should this be hidden on the sitewide activity stream?
    643643        );
    644644
Note: See TracChangeset for help on using the changeset viewer.