Collections functions
Encryption functions
General functions
Theme permission functions
Video functions
Resource functions

message_seen()

Description

Mark a message as seen

Parameters

ColumnTypeDefaultDescription
$message int Message ID
$seen_type int MESSAGE_ENUM_NOTIFICATION_TYPE_SCREEN - see definitons.php

Return

void

Location

include/message_functions.php lines 123 to 129

Definition

 
function message_seen($message,$seen_type=MESSAGE_ENUM_NOTIFICATION_TYPE_SCREEN)
    {
    
$seen_type escape_check($seen_type);
    
$message   escape_check($message);

    
sql_query("UPDATE `user_message` SET seen=seen | {$seen_type} WHERE `ref`='{$message}'");
    }

This article was last updated 21st September 2020 21:05 Europe/London time based on the source file dated 4th August 2020 08:55 Europe/London time.