Changeset 8428 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 05/16/2014 01:05:35 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-activity/bp-activity-functions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r8237 r8428 276 276 * @param string $description The action description. 277 277 * @param callable $format_callback Callback for formatting the action string. 278 * @param string $label String to describe this action in the activity stream 279 * filter dropdown. 280 * @param array $context Activity stream contexts where the filter should appear. 281 * 'activity', 'member', 'member_groups', 'group' 278 282 * @return bool False if any param is empty, otherwise true. 279 283 */ 280 function bp_activity_set_action( $component_id, $type, $description, $format_callback = false ) {284 function bp_activity_set_action( $component_id, $type, $description, $format_callback = false, $label = false, $context = array() ) { 281 285 $bp = buddypress(); 282 286 … … 304 308 'value' => $description, 305 309 'format_callback' => $format_callback, 306 ), $component_id, $type, $description, $format_callback ); 310 'label' => $label, 311 'context' => $context, 312 ), $component_id, $type, $description, $format_callback, $label, $context ); 307 313 308 314 return true; … … 836 842 'activity_update', 837 843 __( 'Posted a status update', 'buddypress' ), 838 'bp_activity_format_activity_action_activity_update' 844 'bp_activity_format_activity_action_activity_update', 845 __( 'Updates', 'buddypress' ), 846 array( 'activity', 'group', 'member', 'member_groups' ) 839 847 ); 840 848 … … 843 851 'activity_comment', 844 852 __( 'Replied to a status update', 'buddypress' ), 845 'bp_activity_format_activity_action_activity_comment' 853 'bp_activity_format_activity_action_activity_comment', 854 __( 'Activity Comments', 'buddypress' ) 846 855 ); 847 856
Note: See TracChangeset
for help on using the changeset viewer.