Function __global->set_notifications
Definitions
sources/notifications.php
- Set a notification setting for a member on a notification code+category.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: bool
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$notification_code | ID_TEXT | required parameter | N/A | N/A | The notification code to use |
$notification_category | ?SHORT_TEXT | required parameter | N/A | N/A | The category within the notification code (null: none) |
$member_id | ?MEMBER | Null | N/A | N/A | The member being signed up (null: current member) |
$setting | ?integer | Null | N/A | N/A | Setting to use (null: default) |
$reset_for_all_types | boolean | True | N/A | N/A | Reset all notification codes, not just set for $setting |
Return
- Whether a change was actually made to the notification settings
- Type: boolean
- Set: N/A
- Range: N/A