Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

message_seen_all()

Parameters

ColumnTypeDefaultDescription
$user
$seen_type MESSAGE_ENUM_NOTIFICATION_TYPE_SCREEN

Location

include/message_functions.php lines 119 to 129

Definition

 
function message_seen_all($user,$seen_type=MESSAGE_ENUM_NOTIFICATION_TYPE_SCREEN)
    {
    
$messages = array();
    if (
message_get($messages,$user,true))
        {
        foreach(
$messages as $message)
            {             
            
message_seen($message['ref']);
            }
        }
    }

This article was last updated 7th July 2020 10:35 Europe/London time based on the source file dated 2nd July 2020 09:49 Europe/London time.