Function Hook_notification_download->list_members_who_have_enabled
Definitions
sources/hooks/systems/notifications/download.php
- Get a list of members who have enabled this notification (i.e. have permission to AND have chosen to or are defaulted to).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$notification_code | ID_TEXT | required parameter | N/A | N/A | Notification code |
$category | ?SHORT_TEXT | Null | N/A | N/A | The category within the notification code (null: none) |
$to_member_ids | ?array | Null | N/A | N/A | List of member IDs we are restricting to (null: no restriction). This effectively works as a intersection set operator against those who have enabled. |
$from_member_id | ?integer | Null | N/A | N/A | The member ID doing the sending. Either a MEMBER or a negative number (e.g. A_FROM_SYSTEM_UNPRIVILEGED) (null: current member) |
$start | integer | 0 | N/A | N/A | Start position (for pagination) |
$max | integer | 300 | N/A | N/A | Maximum (for pagination) |
Return
- A pair: Map of members to their notification setting, and whether there may be more
- Type: array
- Set: N/A
- Range: N/A