This function allows you to add a new notification for a specific user. Notifications are shown when the user logs in (if the notice is generated when they are not online) or on the next page reload (if they are logged in).
An associative array containing the message and the ID of the user that it is intended for.
The lifespan of the message. The value is multiplied with the number of seconds there is in a day.
No example found.