Changeset 4961 for trunk/bp-members/bp-members-notifications.php
- Timestamp:
- 08/10/2011 06:32:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-notifications.php
r4907 r4961 59 59 if ( empty( $grouped_notifications ) ) 60 60 return false; 61 61 62 62 $renderable = array(); 63 63 64 64 // Calculate a renderable output for each notification type 65 65 foreach ( (array)$grouped_notifications as $component_name => $action_arrays ) { … … 76 76 if ( isset( $bp->{$component_name}->format_notification_function ) && function_exists( $bp->{$component_name}->format_notification_function ) ) { 77 77 $renderable[] = call_user_func( $bp->{$component_name}->format_notification_function, $component_action_name, $component_action_items[0]->item_id, $component_action_items[0]->secondary_item_id, $action_item_count ); 78 } elseif ( isset( $bp->{$component_name}->notification_callback ) && function_exists( $bp->{$component_name}->notification_callback ) ) { 78 } elseif ( isset( $bp->{$component_name}->notification_callback ) && function_exists( $bp->{$component_name}->notification_callback ) ) { 79 79 if ( 'object' == $format ) { 80 80 $content = call_user_func( $bp->{$component_name}->notification_callback, $component_action_name, $component_action_items[0]->item_id, $component_action_items[0]->secondary_item_id, $action_item_count, 'array' ); 81 81 82 82 $notification_object = new stdClass; 83 83 84 84 // Minimal backpat with non-compatible notification 85 85 // callback functions … … 91 91 $notification_object->href = $content['link']; 92 92 } 93 93 94 94 $notification_object->id = $component_action_items[0]->id; 95 95 96 96 $renderable[] = $notification_object; 97 97 } else {
Note: See TracChangeset
for help on using the changeset viewer.