Opened 13 years ago
Closed 12 years ago
#5314 closed enhancement (fixed)
filter for friends notification
| Reported by: | mpa4hu | Owned by: | johnjamesjacoby |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0 |
| Component: | Toolbar & Notifications | Version: | |
| Severity: | normal | 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
@
13 years ago
- Component Core → Notifications
- Milestone Awaiting Review → 2.0
- Owner set to
- Status new → assigned
#3
@
12 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 8169: