Opened 11 years ago
Closed 11 years ago
#5314 closed enhancement (fixed)
filter for friends notification
Reported by: | mpa4hu | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 2.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Toolbar & Notifications | Keywords: | |
Cc: |
Description
mensions notification has a filter which provides handy variables.
but `friends_format_notifications`
does not.
I think it will be good for function to provide `$item_id`
and `$format`
Change History (6)
#1
@
11 years ago
- Component changed from Core to Notifications
- Milestone changed from Awaiting Review to 2.0
- Owner set to johnjamesjacoby
- Status changed from new to assigned
#3
@
11 years ago
- Keywords needs-testing added
mpa4hu - I've added the $item_id
as an argument for the notification filters.
As for $format
, I don't think that variable is necessary.
You can do a check for the format by checking if the notification is an array. If it is an array, then the format is 'array'
. If not, then the format is 'string'
.
Leaving it open for feedback.
In 8169: