problem formatting notification
-
Hi, I have a main component (buddypress maps)
and I’m writing a plugin to extend it.
From that plugin, I would like to fire a new notification.
In the component, I have
$bp->maps->format_notification_function = ‘bp_maps_format_notifications’;
function bp_maps_format_notifications( $action, $item_id, $secondary_item_id, $total_items ) {
global $bp;
switch ( $action ) {
}
return do_action( ‘bp_maps_format_notifications’, $action, $item_id, $secondary_item_id, $total_items );
}
in the plugin, I have
add_action(‘bp_maps_format_notifications’,’bp_maps_profile_batch_locate_format_notifications’,10,4);
function bp_maps_profile_batch_locate_format_notifications ($action, $item_id, $secondary_item_id, $total_items ) {
global $bp;
switch ( $action ) {
case ‘batch_profile_marker_set’:
$profile_edition_link=$bp->loggedin_user->domain . $bp->profile->slug.’/edit/group/’.$bp->maps_profile->options[‘group_id’];
return apply_filters( ‘bp_maps_single_marker_set_notification’,$link);
break;
}
do_action( ‘bp_maps_profile_batch_locate_format_notifications’, $action, $item_id, $secondary_item_id, $total_items );
return false;
}
The notification IS saved; the notification count in buddypress IS show; but the notification link do not appear.
Maybe a priority problem or something like this.
Any idea ?
- The topic ‘problem formatting notification’ is closed to new replies.