Collections functions
General functions
Render functions
Theme permission 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 366 to 369

Definition

 
function message_seen($message,$seen_type=MESSAGE_ENUM_NOTIFICATION_TYPE_SCREEN)
    {
    
ps_query("UPDATE `user_message` SET seen = seen | ? WHERE `ref` = ?", array("i",$seen_type,"i",$message));
    }

This article was last updated 30th September 2022 18:05 Europe/London time based on the source file dated 13th September 2022 10:20 Europe/London time.