Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/16/2011 08:54:02 PM (14 years ago)
Author:
boonebgorges
Message:

Abstracts user_meta keys so that they can be filtered. Fixes #2952

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-loader.php

    r4281 r4372  
    6363            define( 'BP_ACTIVITY_SLUG', $this->id );
    6464
    65         // Global tables for messaging component
     65        // Global tables for activity component
    6666        $global_tables = array(
    6767            'table_name'      => $bp->table_prefix . 'bp_activity',
    6868            'table_name_meta' => $bp->table_prefix . 'bp_activity_meta',
    6969        );
    70 
    71         // All globals for messaging component.
     70       
     71        // User meta keys
     72        $user_meta_keys = array(
     73            'new_mention_count'             => 'bp_new_mention_count',
     74            'new_mentions'              => 'bp_new_mentions',
     75            'favorite_activities'           => 'bp_favorite_activities',
     76            'latest_update'             => 'bp_latest_update',
     77            'notification_activity_new_mention' => 'notification_activity_new_mention',
     78            'notification_activity_new_reply'   => 'notification_activity_new_reply'
     79        );
     80
     81        // All globals for activity component.
    7282        // Note that global_tables is included in this array.
    7383        $globals = array(
     
    7787            'search_string'         => __( 'Search Activity...', 'buddypress' ),
    7888            'global_tables'         => $global_tables,
     89            'user_meta_keys'    => $user_meta_keys
    7990        );
    8091
Note: See TracChangeset for help on using the changeset viewer.